fix(core): update

This commit is contained in:
2019-09-02 16:51:22 +02:00
parent 7e9fc62ce7
commit bf3656f792
6 changed files with 68 additions and 67 deletions

View File

@ -130,7 +130,11 @@ export class SmartdataCollection<T> {
updateableObject[key] = saveableObject[key];
}
console.log(updateableObject);
this.mongoDbCollection.updateOne(identifiableObject, { $set: updateableObject }, {upsert: true});
this.mongoDbCollection.updateOne(
identifiableObject,
{ $set: updateableObject },
{ upsert: true }
);
}
public async delete(dbDocArg: T & SmartDataDbDoc<T>): Promise<any> {