diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2020-05-05 02:48:52 -0700 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2020-05-05 02:48:52 -0700 |
commit | 82ac34b162013ef6458b575336d529d2bcd0769d (patch) | |
tree | 6f51a023dafa915ce378d3042c5264e51c68f875 /src | |
parent | df6f48825f37dba00c28bf8d0088b1bd0174095d (diff) |
cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/server/database.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/server/database.ts b/src/server/database.ts index 9ba461b65..cfd707825 100644 --- a/src/server/database.ts +++ b/src/server/database.ts @@ -130,10 +130,6 @@ export namespace Database { return collectionNames; } - public async clear() { - return Promise.all((await this.getCollectionNames()).map(collection => this.dropSchema(collection))); - } - public delete(query: any, collectionName?: string): Promise<mongodb.DeleteWriteOpResultObject>; public delete(id: string, collectionName?: string): Promise<mongodb.DeleteWriteOpResultObject>; public delete(id: any, collectionName = DocumentsCollection) { |