File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
apps/meteor/app/apps/server/bridges Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,7 @@ export class AppUserBridge extends UserBridge {
132132 return true ;
133133 }
134134
135- const { status, statusText } = fields ;
136- delete fields . statusText ;
137- delete fields . status ;
135+ const { status, statusText, ...updateFields } = fields ;
138136
139137 if ( status ) {
140138 await Presence . setStatus ( user . id , status as UserStatus , statusText ) ;
@@ -152,9 +150,9 @@ export class AppUserBridge extends UserBridge {
152150 ) ;
153151 }
154152
155- await Users . updateOne ( { _id : user . id } , { $set : fields as any } ) ;
153+ await Users . updateOne ( { _id : user . id } , { $set : updateFields as any } ) ;
156154
157- void notifyOnUserChange ( { clientAction : 'updated' , id : user . id , diff : fields } ) ;
155+ void notifyOnUserChange ( { clientAction : 'updated' , id : user . id , diff : updateFields } ) ;
158156
159157 return true ;
160158 }
You can’t perform that action at this time.
0 commit comments