Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: update batchDelete of player
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Jan 9, 2020
1 parent 7ddb475 commit 839fd3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/player/player.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,14 @@ export class PlayerService {
}

public async batchDelete(ids: string[]): Promise<BatchDeleteModel> {
return this.playerModel.deleteMany({
const res = await this.playerModel.deleteMany({
_id: { $in: ids },
})

return {
...res,
ids,
}
}

public async batchUpdate(ids: string[]): Promise<BatchUpdateModel> {
Expand Down

0 comments on commit 839fd3c

Please sign in to comment.