Skip to content

Commit 705ae50

Browse files
authored
fix: consistent parameters for platform event listeners (#451)
Closes #405
1 parent 9ef9121 commit 705ae50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/apify/src/actor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,12 +834,12 @@ export class Actor<Data extends Dictionary = Dictionary> {
834834
...this.config
835835
.getEventManager()
836836
.listeners(EventType.PERSIST_STATE)
837-
.map(async (x) => x()),
837+
.map(async (x) => (x as any)({})),
838838
// `migrating` to pause Apify crawlers
839839
...this.config
840840
.getEventManager()
841841
.listeners(EventType.MIGRATING)
842-
.map(async (x) => x()),
842+
.map(async (x) => (x as any)({})),
843843
]);
844844

845845
const runId = this.config.get('actorRunId')!;

0 commit comments

Comments
 (0)