mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
members-api: Switch from GhostError to ConflictError
no issue
This commit is contained in:
parent
313dc933c7
commit
7f6d3a3178
@ -140,9 +140,8 @@ module.exports = class StripeWebhookService {
|
|||||||
if (err.code !== 'ER_DUP_ENTRY' && err.code !== 'SQLITE_CONSTRAINT') {
|
if (err.code !== 'ER_DUP_ENTRY' && err.code !== 'SQLITE_CONSTRAINT') {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
throw new errors.GhostError({
|
throw new errors.ConflictError({
|
||||||
err,
|
err
|
||||||
statusCode: 409
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tryghost/debug": "^0.1.2",
|
"@tryghost/debug": "^0.1.2",
|
||||||
"@tryghost/domain-events": "^0.1.3",
|
"@tryghost/domain-events": "^0.1.3",
|
||||||
"@tryghost/errors": "^1.1.0",
|
"@tryghost/errors": "^1.1.1",
|
||||||
"@tryghost/logging": "^2.0.0",
|
"@tryghost/logging": "^2.0.0",
|
||||||
"@tryghost/magic-link": "^1.0.14",
|
"@tryghost/magic-link": "^1.0.14",
|
||||||
"@tryghost/member-analytics-service": "^0.1.4",
|
"@tryghost/member-analytics-service": "^0.1.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user