update updatedat in mongoose automatically code example
Example: updatedAt mongoose stop
await LogsModel.findOneAndUpdate({ _id: log._id }, {
documentStatus: 'Expired',
}, {
timestamps: false,
});
await LogsModel.findOneAndUpdate({ _id: log._id }, {
documentStatus: 'Expired',
}, {
timestamps: false,
});