diff --git a/server/src/core/server/services/migrate/migrations/1579189174931_create_sites.ts b/server/src/core/server/services/migrate/migrations/1579189174931_create_sites.ts index f9ceeb913b..2c71d230b7 100644 --- a/server/src/core/server/services/migrate/migrations/1579189174931_create_sites.ts +++ b/server/src/core/server/services/migrate/migrations/1579189174931_create_sites.ts @@ -191,10 +191,12 @@ export default class extends Migration { // Push the update and process it if we need to. await batch.add( - // Find the story by ID. { id: doc._id }, // Dotize set the action counts on the story. - { $set: dotize(encodedActionCounts) } + { + filter: { id: doc._id }, + update: { $set: dotize(encodedActionCounts) }, + } ); }