fix image to show correct path
All checks were successful
backend-action / build-image (push) Successful in 27s

This commit is contained in:
2024-04-21 02:09:47 +07:00
parent 35880519da
commit 9ac18c30b8

View File

@@ -150,7 +150,13 @@ async function getUser(userId: number, showPhone: boolean) {
code: "BAD_REQUEST", code: "BAD_REQUEST",
}); });
} }
return { ...user, phone: showPhone ? user.phone : hidePhone(user.phone) }; return {
...user,
phone: showPhone ? user.phone : hidePhone(user.phone),
image: user.image
? `${Config.minioPublicBucketEndpoint}${user.image}`
: null,
};
} }
async function createUser( async function createUser(