feat(MED-100): small improvements
This commit is contained in:
@@ -84,7 +84,7 @@ export class MontonioWebhookHandlerService
|
||||
}, `Received Montonio webhook event`);
|
||||
|
||||
if (event.paymentStatus === 'PAID') {
|
||||
const accountId = event.merchantReferenceDisplay.split(':')[0];
|
||||
const [accountId] = event.merchantReferenceDisplay.split(':');
|
||||
if (!accountId) {
|
||||
throw new Error('Invalid merchant reference');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user