globalbibletools / gbt

https://interlinear.globalbibletools.com
15 stars 2 forks source link

refactor: upgrade lucia and prisma #372

Closed arrocke closed 8 months ago

arrocke commented 9 months ago

What has changed

QA Steps

  1. Run nx run db:prisma migrate dev
  2. Confirm you can still log in with existing accounts
  3. Invite a new user to a language
  4. Invite a new user to the platform
  5. Update email and password for existing user

Post-Deployment

Pertempto commented 9 months ago

Unrelate to this PR, but I saw this when signing in from an invite.

image

Pertempto commented 9 months ago

I updated a user's email, clicked the verification link, then logged back in.

I then attempted to update the user's password

image

MissingEmailAddressError: We can't send emails to user with id 018e1324-0c33-e9a5-8642-6a835699f649 because they are missing an email address.
    at Object.sendEmail (webpack-internal:///(api)/./shared/mailer.ts:55:23)
    at Object.handler (webpack-internal:///(api)/./pages/api/users/[userId].ts:88:74)
    at async eval (webpack-internal:///(api)/./shared/Route.ts:171:21)
    at async eval (webpack-internal:///(api)/./shared/Route.ts:230:21)
Pertempto commented 9 months ago

The bug occurs when I try to update the password for any user.

arrocke commented 9 months ago

I updated the seed file and fixed the mailer