Fix bug
This commit is contained in:
parent
5093f69b08
commit
d90ad34924
@ -108,7 +108,7 @@ export async function createPerson(value: any, resolver?: Resolver): Promise<IUs
|
|||||||
].map(img =>
|
].map(img =>
|
||||||
img == null
|
img == null
|
||||||
? Promise.resolve(null)
|
? Promise.resolve(null)
|
||||||
: resolveImage(user, img.url)
|
: resolveImage(user, img)
|
||||||
))).map(file => file != null ? file._id : null);
|
))).map(file => file != null ? file._id : null);
|
||||||
|
|
||||||
User.update({ _id: user._id }, { $set: { avatarId, bannerId } });
|
User.update({ _id: user._id }, { $set: { avatarId, bannerId } });
|
||||||
|
Loading…
Reference in New Issue
Block a user