mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Fix account update
This commit is contained in:
@@ -302,8 +302,8 @@ accountsRouter.put(
|
||||
throw new Error('User node not found.');
|
||||
}
|
||||
|
||||
const name = user.attributes.name;
|
||||
const avatar = user.attributes.avatar;
|
||||
const name = user.attributes.name ?? null;
|
||||
const avatar = user.attributes.avatar ?? null;
|
||||
|
||||
if (account.name !== name || account.avatar !== avatar) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user