fix: auto clear of trash after 7 days

We were getting this error: `Cannot read property 'remove' of undefined`
This commit is contained in:
thecodrr
2020-09-07 09:45:31 +05:00
parent 5cc70ef235
commit 9c5fa7e88d

View File

@@ -54,12 +54,12 @@ class Database {
this.tags = await Tags.new(this, "tags");
/** @type {Tags} */
this.colors = await Tags.new(this, "colors");
/** @type {Trash} */
this.trash = await Trash.new(this, "trash");
/** @type {Content} */
this.delta = await Content.new(this, "delta", false);
/** @type {Content} */
this.text = await Content.new(this, "text", false);
/** @type {Trash} */
this.trash = await Trash.new(this, "trash");
await this.user.sync();
}