Fix events structure to prevent "Instance not found" exception

This commit is contained in:
Stênio Aníbal
2024-08-21 14:55:18 -03:00
parent 475fced33b
commit 6585e8f0c2
5 changed files with 12 additions and 10 deletions

View File

@@ -102,7 +102,7 @@ export class RabbitmqController extends EventController {
});
if (!data) {
return null;
throw new NotFoundException('Instance websocket not found');
}
return data;

View File

@@ -88,7 +88,7 @@ export class SqsController extends EventController {
});
if (!data) {
return null;
throw new NotFoundException('Instance websocket not found');
}
return data;

View File

@@ -62,7 +62,7 @@ export class WebhookController extends EventController {
});
if (!data) {
return null;
throw new NotFoundException('Instance websocket not found');
}
return data;

View File

@@ -99,7 +99,7 @@ export class WebsocketController extends EventController {
});
if (!data) {
return null;
throw new NotFoundException('Instance websocket not found');
}
return data;