v1.5.6
This commit is contained in:
parent
2cd8ba3ba0
commit
308c9cb63d
@ -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",
|
||||
|
@ -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<void>
|
||||
{
|
||||
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<void>
|
||||
{
|
||||
if (!this.#db)
|
||||
return Promise.reject(new Error('MongoDB not connected'));
|
||||
|
Loading…
Reference in New Issue
Block a user