Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovepixelart committed Apr 10, 2023
1 parent d73cb13 commit 1644905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function bulkPatch<T> (opts: IPluginOptions<T>, context: IContext<T>, even
}
}

if (opts.patchHistoryDisabled) {
if (!opts.patchHistoryDisabled) {
await History
.bulkWrite(bulk, { ordered: false })
.catch((err: MongooseError) => {
Expand Down

0 comments on commit 1644905

Please sign in to comment.