@@ -207,6 +207,10 @@ const askstream = async (req, res) => {
|
||||
|
||||
|
||||
if (!results.length) {
|
||||
const result = await postgre.query(
|
||||
'insert into useraskquestion (user_id, questions) values ($1, $2)',
|
||||
[user_id, question]
|
||||
);
|
||||
send("token", { token: "❌", isWord: true });
|
||||
send("token", { token: "I", isWord: true });
|
||||
send("token", { token: "could", isWord: true });
|
||||
@@ -220,10 +224,7 @@ const askstream = async (req, res) => {
|
||||
send("token", { token: "documents.", isWord: true });
|
||||
send("done", { sources: [] });
|
||||
|
||||
const result = await postgre.query(
|
||||
'insert into useraskquestion (user_id, questions) values ($1, $2)',
|
||||
[user_id, question]
|
||||
);
|
||||
|
||||
|
||||
return res.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user