fix api breaking change with timestamps

This commit is contained in:
Nacho Codoñer
2024-10-28 18:02:22 +01:00
parent b857a88cb9
commit ae93277546

View File

@@ -478,7 +478,7 @@ if (Meteor.isServer) {
self.expects = [];
self.insert = async function(fields) {
return coll.insertAsync(
Object.assign({ ts: new MongoInternals.MongoTimestamp(0, 0) }, fields)
Object.assign({ ts: new MongoInternals.MongoTimestamp({ t: 0, i: 0 }) }, fields)
);
};