Skip to content
Snippets Groups Projects
Unverified Commit ba858973 authored by Marcos Spessatto Defendi's avatar Marcos Spessatto Defendi Committed by GitHub
Browse files

chore: update editedBy when the user changes their username (following BE rules) (#31098)

parent 047022f7
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,20 @@ Meteor.startup(() => {
},
);
Messages.update(
{
'editedBy._id': _id,
},
{
$set: {
'editedBy.username': username,
},
},
{
multi: true,
},
);
Messages.update(
{
mentions: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment