mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +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') {
|
||||
throw err;
|
||||
}
|
||||
throw new errors.GhostError({
|
||||
err,
|
||||
statusCode: 409
|
||||
throw new errors.ConflictError({
|
||||
err
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
"dependencies": {
|
||||
"@tryghost/debug": "^0.1.2",
|
||||
"@tryghost/domain-events": "^0.1.3",
|
||||
"@tryghost/errors": "^1.1.0",
|
||||
"@tryghost/errors": "^1.1.1",
|
||||
"@tryghost/logging": "^2.0.0",
|
||||
"@tryghost/magic-link": "^1.0.14",
|
||||
"@tryghost/member-analytics-service": "^0.1.4",
|
||||
|
Loading…
Reference in New Issue
Block a user