enhance run core - add the logic to save the start chat logic to db; modify some entity with wrong type.

This commit is contained in:
geekgeekrun
2024-03-17 21:57:05 +08:00
parent 883e443e61
commit 3c3d8f2bf2
8 changed files with 171 additions and 28 deletions
@@ -296,7 +296,7 @@ export async function mainLoop (hooks) {
throw new Error('STARTUP_CHAT_ERROR_WITH_UNKNOWN_ERROR')
}
} else {
hooks.newChatStartup?.call(jobData)
await hooks.newChatStartup?.promise(jobData)
blockBossNotNewChat.add(jobData.jobInfo.encryptUserId)
await storeStorage(page).catch(() => void 0)