Skip to content

Commit

Permalink
fix: fix duplicate key error collection problem in ack update api
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Sep 19, 2023
1 parent c59e56c commit 3c1d8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/core/chat/ack.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AckService extends TcService {
const { converseId, lastMessageId } = ctx.params;
const userId = ctx.meta.userId;

await this.adapter.model.findOneAndUpdate(
await this.adapter.model.updateOne(
{
converseId,
userId,
Expand Down

0 comments on commit 3c1d8ef

Please sign in to comment.