aboutsummaryrefslogtreecommitdiff
path: root/src/server/IDatabase.ts
diff options
context:
space:
mode:
authorTyler Schicke <tschicke@gmail.com>2020-01-09 22:03:16 -0800
committerTyler Schicke <tschicke@gmail.com>2020-01-09 22:03:16 -0800
commita2f423fa31e649805e7dd087037a5fe262c44a4a (patch)
tree2cb98cf51526825c1268b2f23943d12244c44fd9 /src/server/IDatabase.ts
parent6bc423813b733782e922b7cde25131cdc9eeccd0 (diff)
Added updateMany to IDatabase to fix type error in GarbageCollector.ts
Diffstat (limited to 'src/server/IDatabase.ts')
-rw-r--r--src/server/IDatabase.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/IDatabase.ts b/src/server/IDatabase.ts
index f1f450731..6a63df485 100644
--- a/src/server/IDatabase.ts
+++ b/src/server/IDatabase.ts
@@ -5,6 +5,7 @@ export const DocumentsCollection = 'documents';
export const NewDocumentsCollection = 'newDocuments';
export interface IDatabase {
update(id: string, value: any, callback: (err: mongodb.MongoError, res: mongodb.UpdateWriteOpResult) => void, upsert?: boolean, collectionName?: string): Promise<void>;
+ updateMany(query: any, update: any, collectionName?: string): Promise<mongodb.WriteOpResult>;
replace(id: string, value: any, callback: (err: mongodb.MongoError, res: mongodb.UpdateWriteOpResult) => void, upsert?: boolean, collectionName?: string): void;