Skip to content

Commit

Permalink
Remove outdated markdown field when updating message mentions on user…
Browse files Browse the repository at this point in the history
…name change
  • Loading branch information
matheusbsilva137 committed Oct 11, 2023
1 parent 0cdf97d commit d515d1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/meteor/server/models/raw/Messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,7 @@ export class MessagesRaw extends BaseRaw<IMessage> implements IMessagesModel {
'mentions.$.username': newUsername,
'msg': newMessage,
},
$unset: { md: 1 },
};

return this.updateOne(query, update);
Expand Down

0 comments on commit d515d1a

Please sign in to comment.