Skip to content

Commit

Permalink
update types for site batch update in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Oct 7, 2024
1 parent 33c914a commit 6e635a9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
}
);
}

Expand Down

0 comments on commit 6e635a9

Please sign in to comment.