mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 09:13:23 +03:00
Fix api transformers, intercept by error message instead of undefined
This commit is contained in:
@@ -45,7 +45,9 @@ module.exports = {
|
||||
deletedAt: null
|
||||
})
|
||||
.set(inputs.values)
|
||||
.intercept(undefined, 'conflict');
|
||||
.intercept({
|
||||
message: 'Unexpected error from database adapter: conflicting key value violates exclusion constraint "user_email_unique"'
|
||||
}, 'conflict');
|
||||
|
||||
if (user) {
|
||||
if (inputs.record.avatar && user.avatar !== inputs.record.avatar) {
|
||||
|
||||
Reference in New Issue
Block a user