Untitled

mail@pastecode.io avatar
unknown
json
a year ago
1.3 kB
3
Indexable
Never
{
    "code": 400,
    "message": "\nInvalid `prisma.user.update()` invocation in\n/usr/src/app/src/services/auth.service.js:407:23\n\n  404     { context: { key: 'password' }, message: 'Invalid email or password' },\n  405   ]);\n  406 if (playerId && timezone) {\n→ 407   await prisma.user.update(\nUnique constraint failed on the constraint: `userDevices_playerId_key`",
    "validation": {
        "target": "userDevices_playerId_key"
    },
    "stack": "Error:\nInvalid`prisma.user.update()`invocationin\n/usr/src/app/src/services/auth.service.js:407:23\n\n404{context:{key:'password'},message:'Invalidemailorpassword'},\n405]);\n406if(playerId&&timezone){\n→407awaitprisma.user.update(\nUniqueconstraintfailedontheconstraint:`userDevices_playerId_key`\natRequestHandler.handleRequestError(/usr/src/app/node_modules/@prisma/client/runtime/index.js:35024:13)\natRequestHandler.handleAndLogRequestError(/usr/src/app/node_modules/@prisma/client/runtime/index.js:34996:12)\natRequestHandler.request(/usr/src/app/node_modules/@prisma/client/runtime/index.js:34991:12)\natasyncPrismaClient._request(/usr/src/app/node_modules/@prisma/client/runtime/index.js:36082:16)\natasyncObject.exports.loginByEmailAndPassword(/usr/src/app/src/services/auth.service.js:407:5)\natasync/usr/src/app/src/controllers/auth.controller.js:17:16"
}