From c793cbe2f9a12b8ff4e3903f10e524918254267c Mon Sep 17 00:00:00 2001 From: murtaza98 Date: Mon, 27 Jun 2022 17:40:55 +0530 Subject: [PATCH] fix invalid query in migration --- apps/meteor/server/startup/migrations/v270.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/meteor/server/startup/migrations/v270.ts b/apps/meteor/server/startup/migrations/v270.ts index b2b3494fa931..465b74add1d5 100644 --- a/apps/meteor/server/startup/migrations/v270.ts +++ b/apps/meteor/server/startup/migrations/v270.ts @@ -8,6 +8,7 @@ addMigration({ // mark all voip rooms as inbound which doesn't have any direction property set or has an invalid value await VoipRoom.updateMany( { + t: 'v', $or: [{ direction: { $exists: false } }, { direction: { $nin: ['inbound', 'outbound'] } }], }, {