Skip to content

Commit bfeca4a

Browse files
nytaminolzzon
authored andcommitted
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 1f00f7f commit bfeca4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meteor/server/migration/1_52_0.ts

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const addSteps = addMigrationSteps('1.52.0', [
8181
// .abPlayers in the overrides:
8282
for (const override of studio.routeSetsWithOverrides.overrides) {
8383
if (override.op === 'set') {
84+
if (override.path.includes('.')) continue // Only include overrides at the top level
8485
const value = override.value as StudioRouteSet
8586

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

117119
if (!value.abPlayers) {

0 commit comments

Comments
 (0)