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:
Cameron Blackwood
2024-06-27 10:52:00 +01:00
committed by GitHub
parent 197549c8fc
commit d0de9af8eb
2 changed files with 7 additions and 7 deletions

View File

@@ -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 });