made playlog table dynamic

This commit is contained in:
polaris
2024-06-29 14:43:11 -04:00
parent 30825e20f1
commit c784e8808e
14 changed files with 218 additions and 46 deletions

View File

@ -67,9 +67,11 @@ const signUp = async (formData: FormData) => {
const hashedPassword = await new Argon2id().hash(formDataRaw.password);
const userId = generateId(15);
const artemisUserId = existingAccessCode.user;
// Create user in the daphnis database
await daphnis.user.create({
data: {
UserId: artemisUserId,
id: userId,
username: formDataRaw.username,
email: formDataRaw.email,