This commit is contained in:
syuilo 2019-04-10 18:13:33 +09:00
parent dda5f6559d
commit 2e3dd2a30a
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -223,8 +223,8 @@ export default define(meta, async (ps, user, app) => {
for (const tag of user.tags.filter(x => !tags.includes(x))) updateHashtag(user, tag, true, false);
//#endregion
await Users.update(user.id, updates);
await UserProfiles.update({ userId: user.id }, profile);
if (Object.keys(updates).length > 0) await Users.update(user.id, updates);
if (Object.keys(profile).length > 0) await UserProfiles.update({ userId: user.id }, profile);
const iObj = await Users.pack(user.id, user, {
detail: true,