You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because when I execute Persona.updateProfile(auth.user, payload)
where username was changed to already exists in other user i receive sql error: update "users" set "username"= $1, "created_at" = $2, "updated_at" = $3 where "id" = $4 - duplicate key value violates unique constraint "users_username_unique"
It would be great to have auto validation on existance uids in updateProfile, same as runValidation in register
https://github.com/adonisjs/adonis-persona/blob/b28c5231c4355f8a11a2e357e90807ffd77ab70b/src/Persona.js#L632
The text was updated successfully, but these errors were encountered: