TitanCrew / TrailBlaze

0 stars 2 forks source link

api exits out with consecutive failed registrations #1

Closed TheAlpha16 closed 1 year ago

TheAlpha16 commented 1 year ago

Steps to produce:


TrailBlaze/api/node_modules/pg-pool/index.js:45
    Error.captureStackTrace(err);
          ^

error: duplicate key value violates unique constraint "toverify_phone_key"
    at TrailBlaze/api/node_modules/pg-pool/index.js:45:11
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async TrailBlaze/api/routes/auth.js:87:13 {
  length: 211,
  severity: 'ERROR',
  code: '23505',
  detail: 'Key (phone)=(9328439222) already exists.',
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: 'public',
  table: 'toverify',
  column: undefined,
  dataType: undefined,
  constraint: 'toverify_phone_key',
  file: 'nbtinsert.c',
  line: '664',
  routine: '_bt_check_unique'
}
Atish03 commented 1 year ago

Removed phone field