Nexchan commited on
Commit
4a48cbe
·
verified ·
1 Parent(s): 43791af

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -67,7 +67,7 @@ app.get('/blackbox/get/message', (req, res) => {
67
  if (!id || !db_chatHitamAi[id]) {
68
  return res.status(404).json({ success: false, response: "User not found" });
69
  }
70
- const userMessages = db_chatHitamAi[id].data.history;
71
  res.status(200).json({ messages: userMessages });
72
  });
73
 
@@ -125,7 +125,7 @@ app.get('/gpt4/get/message', (req, res) => {
125
  if (!id || !db_chatGPTAi[id]) {
126
  return res.status(404).json({ success: false, response: "User not found" });
127
  }
128
- const userMessages = db_chatGPTAi[id].data.history;
129
  res.status(200).json({ messages: userMessages });
130
  });
131
 
 
67
  if (!id || !db_chatHitamAi[id]) {
68
  return res.status(404).json({ success: false, response: "User not found" });
69
  }
70
+ const userMessages = db_chatHitamAi[id].data.message;
71
  res.status(200).json({ messages: userMessages });
72
  });
73
 
 
125
  if (!id || !db_chatGPTAi[id]) {
126
  return res.status(404).json({ success: false, response: "User not found" });
127
  }
128
+ const userMessages = db_chatGPTAi[id].data.message;
129
  res.status(200).json({ messages: userMessages });
130
  });
131