Skip to content

Commit c58b021

Browse files
committed
chore: fix migration
There is a bug where the migration added .abplayers to all ovveride sub-paths, where only the top one is correct
1 parent 58c9656 commit c58b021

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meteor/server/migration/1_52_0.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const addSteps = addMigrationSteps('1.52.0', [
8282
// .abPlayers in the overrides:
8383
for (const override of studio.routeSetsWithOverrides.overrides) {
8484
if (override.op === 'set') {
85+
if (override.path.includes('.')) continue // Only include overrides at the top level
8586
const value = override.value as StudioRouteSet
8687

8788
if (!value.abPlayers) {
@@ -113,6 +114,7 @@ export const addSteps = addMigrationSteps('1.52.0', [
113114
// .abPlayers in the overrides:
114115
for (const override of newRouteSetsWithOverrides.overrides) {
115116
if (override.op === 'set') {
117+
if (override.path.includes('.')) continue // Only include overrides at the top level
116118
const value = override.value as StudioRouteSet
117119

118120
if (!value.abPlayers) {

0 commit comments

Comments
 (0)