File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/meteor/server/methods Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { Match, check } from 'meteor/check';
77import { Meteor } from 'meteor/meteor' ;
88
99import { twoFactorRequired } from '../../app/2fa/server/twoFactorRequired' ;
10+ import { getUserInfo } from '../../app/api/server/helpers/getUserInfo' ;
1011import { saveCustomFields } from '../../app/lib/server/functions/saveCustomFields' ;
1112import { validateUserEditing } from '../../app/lib/server/functions/saveUser' ;
1213import { saveUserIdentity } from '../../app/lib/server/functions/saveUserIdentity' ;
@@ -160,7 +161,7 @@ async function saveUserProfile(
160161 // App IPostUserUpdated event hook
161162 const updatedUser = await Users . findOneById ( this . userId ) ;
162163
163- void notifyOnUserChange ( { clientAction : 'updated' , id : updatedUser ! . _id , diff : updatedUser ! } ) ;
164+ void notifyOnUserChange ( { clientAction : 'updated' , id : updatedUser ! . _id , diff : getUserInfo ( updatedUser ! ) } ) ;
164165
165166 await Apps . self ?. triggerEvent ( AppEvents . IPostUserUpdated , { user : updatedUser , previousUser : user } ) ;
166167
You can’t perform that action at this time.
0 commit comments