[READ-ONLY] Mirror of https://github.com/andrioid/n8n-nodes-atproto. atproto node for n8n
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: cast FlattenedJetstreamEvent to IDataObject in emit calls

Typescript error: FlattenedJetstreamEvent lacks index signature
so it doesn't satisfy IDataObject. Cast with as unknown as IDataObject.

+3 -2
+3 -2
src/nodes/Atproto/AtprotoJetstream.trigger.ts
··· 1 1 import type { 2 + IDataObject, 2 3 INodeProperties, 3 4 INodeType, 4 5 INodeTypeDescription, ··· 347 348 staticData.cursor = event.timeUs; 348 349 } 349 350 350 - this.emit([[{ json: event, pairedItem: undefined }]]); 351 + this.emit([[{ json: event as unknown as IDataObject, pairedItem: undefined }]]); 351 352 }, 352 353 onError: (error: Error) => { 353 354 // Non-fatal errors are logged but don't stop the trigger. ··· 382 383 } 383 384 384 385 // Emit the event 385 - this.emit([[{ json: event, pairedItem: undefined }]]); 386 + this.emit([[{ json: event as unknown as IDataObject, pairedItem: undefined }]]); 386 387 387 388 // Record cursor and stop 388 389 if (event.timeUs) {