Skip to content

Commit

Permalink
FIx lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sderrow committed Apr 28, 2024
1 parent 1111ae2 commit f463240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/model/castBulkWrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = function castBulkWrite(originalModel, op, options) {
_addDiscriminatorToObject(schema, op['updateOne']['filter']);

const doInitTimestamps = getTimestampsOpt(op['updateOne'], options);

if (model.schema.$timestamps != null && doInitTimestamps) {
const createdAt = model.schema.$timestamps.createdAt;
const updatedAt = model.schema.$timestamps.updatedAt;
Expand Down

0 comments on commit f463240

Please sign in to comment.