Skip to content

Commit

Permalink
use Mongoose 8 includeResultMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 30, 2024
1 parent a66cd90 commit 917b402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ exports.initMigrationFramework = function initMigrationFramework(conn) {
status: 'in_progress'
}
},
{ new: true, upsert: true, rawResult: true }
{ new: true, upsert: true, rawResult: true, includeResultMetadata: true }
);

const op = res.value;
Expand Down

0 comments on commit 917b402

Please sign in to comment.