Skip to content

Commit 185c919

Browse files
committed
Update workspace.js
1 parent 70780ed commit 185c919

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/resolvers/workspace.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,11 @@ module.exports = {
548548
throw new UserInputError('There is no subscription for provided workspace');
549549
}
550550

551-
await cloudPaymentsApi.cancelSubscription(workspaceModel.subscriptionId);
551+
try {
552+
await cloudPaymentsApi.cancelSubscription(workspaceModel.subscriptionId);
553+
} catch (e) {
554+
throw new ApolloError('Unable to cancel subscription');
555+
}
552556

553557
await workspaceModel.setSubscriptionId(null);
554558

0 commit comments

Comments
 (0)