From 5a5b8ba1768d27458d4d3c54f456707c9662c003 Mon Sep 17 00:00:00 2001 From: TheCodingPantsula Date: Sun, 2 Jun 2024 09:51:10 +0200 Subject: [PATCH] feat: updated method prototype to MongoDBService class. This commit adds the update method prototype to the MongoDBService class in index.ts. This allows the update method to be used with the correct typings. This is related to issue #3485 --- packages/mongodb/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mongodb/src/index.ts b/packages/mongodb/src/index.ts index 565d555d43..04e8d31676 100644 --- a/packages/mongodb/src/index.ts +++ b/packages/mongodb/src/index.ts @@ -41,6 +41,7 @@ export class MongoDBService< return this._create(data, params) } + async update(id: NullableAdapterId, data: Data, params?: ServiceParams): Promise async update(id: AdapterId, data: Data, params?: ServiceParams): Promise { return this._update(id, data, { ...params,