Skip to content

Commit 1c615c0

Browse files
fix tests
1 parent 109b912 commit 1c615c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

enterprise/coderd/prebuilds/reconcile.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,11 @@ func (c *StoreReconciler) ReconcileAll(ctx context.Context) error {
272272
for key, presets := range presetsMap {
273273
for _, preset := range presets {
274274
if preset.UsingActiveVersion && !preset.Deleted {
275-
isPresetHardLimited[key] = snapshot.IsHardLimited(preset.ID)
275+
if snapshot.IsHardLimited(preset.ID) {
276+
isPresetHardLimited[key] = true
277+
} else {
278+
delete(isPresetHardLimited, key)
279+
}
276280
break
277281
}
278282
}

0 commit comments

Comments
 (0)