mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-23 12:58:02 +01:00
Make the user entitiy use a uuid as its identifier (#189)
* Make the user entitiy user a uuid as its identifier * migrate to string types for user id everywhere
This commit is contained in:
committed by
GitHub
parent
197549c8fc
commit
d0de9af8eb
@@ -286,7 +286,7 @@ export const deleteTask: DeleteTask<Pick<Task, 'id'>, Task> = async ({ id }, con
|
||||
return task;
|
||||
};
|
||||
|
||||
export const updateUserById: UpdateUserById<{ id: number; data: Partial<User> }, User> = async (
|
||||
export const updateUserById: UpdateUserById<{ id: string; data: Partial<User> }, User> = async (
|
||||
{ id, data },
|
||||
context
|
||||
) => {
|
||||
@@ -318,7 +318,7 @@ export const createFile: CreateFile<fileArgs, File> = async ({ fileType, name },
|
||||
throw new HttpError(401);
|
||||
}
|
||||
|
||||
const userInfo = context.user.id.toString();
|
||||
const userInfo = context.user.id;
|
||||
|
||||
const { uploadUrl, key } = await getUploadFileSignedURLFromS3({ fileType, userInfo });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user