diff --git a/package.json b/package.json index 2809cba..a9049b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@navy.gif/wrappers", - "version": "1.5.5", + "version": "1.5.6", "description": "Various wrapper classes I use in my projects", "repository": "https://git.corgi.wtf/Navy.gif/wrappers.git", "author": "Navy.gif", diff --git a/src/MongoDB.ts b/src/MongoDB.ts index 4301d4c..8d83d9d 100644 --- a/src/MongoDB.ts +++ b/src/MongoDB.ts @@ -363,7 +363,7 @@ class MongoDB return this.#db.collection(coll).countDocuments(query); } - async ensureIndex (collection: string, index: IndexSpecification, options?: CreateIndexesOptions) + async ensureIndex (collection: string, index: IndexSpecification, options?: CreateIndexesOptions): Promise { if (!this.#db) return Promise.reject(new Error('MongoDB not connected')); @@ -372,7 +372,7 @@ class MongoDB await this.#db.collection(collection).createIndex(index, options); } - async ensureIndices (collection: string, indices: IndexSpecification[], options?: CreateIndexesOptions) + async ensureIndices (collection: string, indices: IndexSpecification[], options?: CreateIndexesOptions): Promise { if (!this.#db) return Promise.reject(new Error('MongoDB not connected'));