Commit 0edb9535 authored by nanahira's avatar nanahira

fix

parent b72ae4e9
Pipeline #5864 passed with stages
in 28 seconds
......@@ -57,8 +57,8 @@ export const UpdateProfiles = async (ctx: Context) => {
}
const targetUser = {
name: ctx.request.body.name,
avatar: ctx.request.body.avatar,
name: ctx.request.body.name || user.name,
avatar: ctx.request.body.avatar || user.avatar,
};
const userRep = getEntityManager().getRepository(User);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment