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 @@ -18,6 +18,7 @@ import { setUserStatusMethod } from '../../app/user-status/server/methods/setUse
1818import { compareUserPassword } from '../lib/compareUserPassword' ;
1919import { compareUserPasswordHistory } from '../lib/compareUserPasswordHistory' ;
2020import { removeOtherTokens } from '../lib/removeOtherTokens' ;
21+ import { getUserInfo } from '../../app/api/server/helpers/getUserInfo' ;
2122
2223const MAX_BIO_LENGTH = 260 ;
2324const MAX_NICKNAME_LENGTH = 120 ;
@@ -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