enh: include profile image during user import

This commit is contained in:
Timothy Jaeryang Baek
2025-05-05 16:17:20 +04:00
parent abdde10b74
commit 33c206c15c
3 changed files with 9 additions and 5 deletions
+4 -2
View File
@@ -354,7 +354,8 @@ export const addUser = async (
name: string,
email: string,
password: string,
role: string = 'pending'
role: string = 'pending',
profile_image_url: null | string = null
) => {
let error = null;
@@ -368,7 +369,8 @@ export const addUser = async (
name: name,
email: email,
password: password,
role: role
role: role,
...(profile_image_url && { profile_image_url: profile_image_url })
})
})
.then(async (res) => {