Fix account update

This commit is contained in:
Hakan Shehu
2024-11-27 10:50:13 +01:00
parent 4b3df84612
commit e4dbb56d13

View File

@@ -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;