From 308c9cb63db1486809f3142eefe25fa20253efdd Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 19 Jul 2023 23:24:53 +0300 Subject: [PATCH] v1.5.6 --- package.json | 2 +- src/MongoDB.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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'));