We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70780ed commit 185c919Copy full SHA for 185c919
src/resolvers/workspace.js
@@ -548,7 +548,11 @@ module.exports = {
548
throw new UserInputError('There is no subscription for provided workspace');
549
}
550
551
- await cloudPaymentsApi.cancelSubscription(workspaceModel.subscriptionId);
+ try {
552
+ await cloudPaymentsApi.cancelSubscription(workspaceModel.subscriptionId);
553
+ } catch (e) {
554
+ throw new ApolloError('Unable to cancel subscription');
555
+ }
556
557
await workspaceModel.setSubscriptionId(null);
558
0 commit comments