Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
FIx lint
  • Loading branch information
sderrow committed Apr 28, 2024
commit f463240b11055e4641f9d67713a3559316bbd2c5
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