feat(MED-100): small improvements

This commit is contained in:
2025-07-21 11:54:07 +03:00
parent 15ed539283
commit 5d53e53ba8
11 changed files with 30 additions and 17 deletions

View File

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