fix wrong call way for mainFlowWillLaunch hook

This commit is contained in:
geekgeekrun
2025-07-12 18:50:40 +08:00
parent 78ddc949f4
commit b89d6e264d

View File

@@ -1282,7 +1282,7 @@ export async function mainLoop (hooks) {
}
await setDomainLocalStorage(browser, localStoragePageUrl, bossLocalStorage)
await page.bringToFront()
await hooks.mainFlowWillLaunch?.callAsync({
await hooks.mainFlowWillLaunch?.promise({
jobNotMatchStrategy,
jobNotActiveStrategy,
expectCityNotMatchStrategy,