mirror of
https://github.com/strapi/strapi.git
synced 2025-10-18 11:32:42 +00:00
Fix api tests
This commit is contained in:
parent
caaa14964d
commit
9ef1bea85f
@ -98,7 +98,9 @@ const updateById = async (id, attributes) => {
|
|||||||
populate: ['roles'],
|
populate: ['roles'],
|
||||||
});
|
});
|
||||||
|
|
||||||
strapi.eventHub.emit('user.update', { user: sanitizeUser(updatedUser) });
|
if (updatedUser) {
|
||||||
|
strapi.eventHub.emit('user.update', { user: sanitizeUser(updatedUser) });
|
||||||
|
}
|
||||||
|
|
||||||
return updatedUser;
|
return updatedUser;
|
||||||
};
|
};
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user