mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
wip: fix log streaming type mismatch
This commit is contained in:
parent
29603f2dd5
commit
ec4318a88a
|
@ -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',
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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 },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue