From 4195af4942828c476084dfccf498a287713805b5 Mon Sep 17 00:00:00 2001 From: Danny Liu Date: Thu, 4 Apr 2024 12:08:20 -0700 Subject: [PATCH] pass generated profile image in signup api call --- src/lib/apis/auths/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/apis/auths/index.ts b/src/lib/apis/auths/index.ts index 1699987261..c3e2dc2ff0 100644 --- a/src/lib/apis/auths/index.ts +++ b/src/lib/apis/auths/index.ts @@ -58,7 +58,7 @@ export const userSignIn = async (email: string, password: string) => { return res; }; -export const userSignUp = async (name: string, email: string, password: string) => { +export const userSignUp = async (name: string, email: string, password: string, profile_image_url: string) => { let error = null; const res = await fetch(`${WEBUI_API_BASE_URL}/auths/signup`, { @@ -69,7 +69,8 @@ export const userSignUp = async (name: string, email: string, password: string) body: JSON.stringify({ name: name, email: email, - password: password + password: password, + profile_image_url: profile_image_url }) }) .then(async (res) => {