Progressing on profile edition and thumbnail cropping

This commit is contained in:
2024-09-11 17:47:04 +02:00
parent e904f28b3b
commit 6856d3b9af
25 changed files with 278 additions and 88 deletions

View File

@@ -63,10 +63,10 @@ export default defineEventHandler(async (e): Promise<Return> => {
return { success: false, error: new ZodError([{ code: 'custom', path: ['password'], message: 'Mot de passe incorrect' }]) };
}
logSession(e, await setUserSession(e, { user: getData(db, id.id) }) as UserSessionRequired);
const data = await logSession(e, await setUserSession(e, { user: getData(db, id.id) }) as UserSessionRequired);
setResponseStatus(e, 201);
return { success: true, session };
return { success: true, session: data };
}
catch(err: any)
{