Skip to content

Commit e6fbc1c

Browse files
committed
Operation type
1 parent b85a07c commit e6fbc1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/billing/cloudpayments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export default class CloudPaymentsWebhooks {
282282
try {
283283
await context.factories.businessOperationsFactory.create<PayloadOfWorkspacePlanPurchase>({
284284
transactionId: body.TransactionId.toString(),
285-
type: BusinessOperationType.WorkspacePlanPurchase,
285+
type: data.isCardLinkOperation ? BusinessOperationType.CardLinkCharge : BusinessOperationType.WorkspacePlanPurchase,
286286
status: BusinessOperationStatus.Pending,
287287
payload: {
288288
workspaceId: workspace._id,

0 commit comments

Comments
 (0)