wip: fix log streaming type mismatch

This commit is contained in:
Eugene Molodkin 2025-01-06 17:21:23 +01:00
parent 29603f2dd5
commit ec4318a88a
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -934,6 +934,7 @@ describe('LogStreamingEventRelay', () => {
it('should log on `execution-throttled` event', () => {
const event: RelayEventMap['execution-throttled'] = {
executionId: 'exec123456',
type: 'production',
};
eventService.emit('execution-throttled', event);
@ -942,6 +943,7 @@ describe('LogStreamingEventRelay', () => {
eventName: 'n8n.execution.throttled',
payload: {
executionId: 'exec123456',
type: 'production',
},
});
});

View file

@ -385,10 +385,10 @@ export class LogStreamingEventRelay extends EventRelay {
// #region Execution
private executionThrottled({ executionId }: RelayEventMap['execution-throttled']) {
private executionThrottled({ executionId, type }: RelayEventMap['execution-throttled']) {
void this.eventBus.sendExecutionEvent({
eventName: 'n8n.execution.throttled',
payload: { executionId },
payload: { executionId, type },
});
}