fix: close receipt delivery workflows
This commit is contained in:
@@ -51,7 +51,10 @@ export class GatewayEventsController {
|
||||
&& body.eventType === 'submit_resp'
|
||||
) || (
|
||||
body.direction === 'platform_to_client'
|
||||
&& body.eventType === 'submit_resp'
|
||||
&& ['submit_resp', 'deliver_receipt', 'deliver_uplink'].includes(body.eventType)
|
||||
) || (
|
||||
body.direction === 'client_to_platform'
|
||||
&& body.eventType === 'deliver_resp'
|
||||
);
|
||||
if (body.protocol !== 'cmpp' || !allowedPacket || !['success', 'failed'].includes(body.status)) {
|
||||
throw new BadRequestException('Unsupported Gateway protocol log event');
|
||||
|
||||
Reference in New Issue
Block a user