fix(core): update

This commit is contained in:
2019-09-02 16:58:19 +02:00
parent e433b9e212
commit 38c1fcd53a
2 changed files with 19 additions and 4 deletions

View File

@ -143,7 +143,10 @@ export class SmartDataDbDoc<T> {
/**
* deletes a document from the database
*/
public async delete() {}
public async delete() {
const self: any = this;
await this.collection.delete(self);
}
/**
* also store any referenced objects to DB