Merge pull request #354 from FlowiseAI/bugfix/first-message-not-found
Bugfix/First Message Not Found
This commit is contained in:
commit
ecf7b06484
|
|
@ -507,8 +507,8 @@ export class App {
|
||||||
})
|
})
|
||||||
if (!chatflow) return res.status(404).send(`Chatflow ${chatflowid} not found`)
|
if (!chatflow) return res.status(404).send(`Chatflow ${chatflowid} not found`)
|
||||||
|
|
||||||
const chatId = await getChatId(chatflow.id)
|
let chatId = await getChatId(chatflow.id)
|
||||||
if (!chatId) return res.status(500).send(`Chatflow ${chatflowid} first message not found`)
|
if (!chatId) chatId = Date.now().toString()
|
||||||
|
|
||||||
if (!isInternal) {
|
if (!isInternal) {
|
||||||
await this.validateKey(req, res, chatflow)
|
await this.validateKey(req, res, chatflow)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue