Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

skygear return 500 when changing email has been taken #124

Closed
2 tasks
klam00 opened this issue Sep 1, 2016 · 0 comments
Closed
2 tasks

skygear return 500 when changing email has been taken #124

klam00 opened this issue Sep 1, 2016 · 0 comments
Assignees
Labels

Comments

@klam00
Copy link

klam00 commented Sep 1, 2016

skygear return 500 when changing email has been taken

  • Skygear Server Date/Version:
  • Application Platform:
  • Is this a regression?
  • Attached logs, screenshots

Expected Results

Actual Results

Steps to reproduce

if var email has been taken in skygear

skygear.saveUser({
    id: skygear.currentUser.id,
    email: email
  }).then(() => {
  }, (err) => {
      //err == {name: "UnexpectedError", code: 10000, message: "pq: duplicate key value violates unique constraint "_user_email_key""}
})
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants