Skip to content

Commit 7ef4508

Browse files
committed
fix: bad playlist count check in t-timer migration
1 parent 67f02a4 commit 7ef4508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meteor/server/migration/X_X_X.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const addSteps = addMigrationSteps(CURRENT_SYSTEM_VERSION, [
6464
canBeRunAutomatically: true,
6565
validate: async () => {
6666
const playlistCount = await RundownPlaylists.countDocuments({ tTimers: { $exists: false } })
67-
if (playlistCount > 1) return `There are ${playlistCount} RundownPlaylists without T-timers`
67+
if (playlistCount > 0) return `There are ${playlistCount} RundownPlaylists without T-timers`
6868
return false
6969
},
7070
migrate: async () => {

0 commit comments

Comments
 (0)