members-api: Switch from GhostError to ConflictError

no issue
This commit is contained in:
Sam Lord 2021-12-06 16:57:19 +00:00
parent 313dc933c7
commit 7f6d3a3178
2 changed files with 3 additions and 4 deletions

View File

@ -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
});
}
}

View File

@ -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",