mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 04:12:23 -06:00
Fix events structure to prevent "Instance not found" exception
This commit is contained in:
@@ -102,7 +102,7 @@ export class RabbitmqController extends EventController {
|
||||
});
|
||||
|
||||
if (!data) {
|
||||
return null;
|
||||
throw new NotFoundException('Instance websocket not found');
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
@@ -88,7 +88,7 @@ export class SqsController extends EventController {
|
||||
});
|
||||
|
||||
if (!data) {
|
||||
return null;
|
||||
throw new NotFoundException('Instance websocket not found');
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
@@ -62,7 +62,7 @@ export class WebhookController extends EventController {
|
||||
});
|
||||
|
||||
if (!data) {
|
||||
return null;
|
||||
throw new NotFoundException('Instance websocket not found');
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
@@ -99,7 +99,7 @@ export class WebsocketController extends EventController {
|
||||
});
|
||||
|
||||
if (!data) {
|
||||
return null;
|
||||
throw new NotFoundException('Instance websocket not found');
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user