Skip to content

Commit

Permalink
feat: updated method prototype to MongoDBService class.
Browse files Browse the repository at this point in the history
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 feathersjs#3485
  • Loading branch information
smngvlkz committed Jun 2, 2024
1 parent a02febb commit 5a5b8ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mongodb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class MongoDBService<
return this._create(data, params)
}

async update(id: NullableAdapterId, data: Data, params?: ServiceParams): Promise<Result>
async update(id: AdapterId, data: Data, params?: ServiceParams): Promise<Result> {
return this._update(id, data, {
...params,
Expand Down

0 comments on commit 5a5b8ba

Please sign in to comment.