Skip to content

Commit

Permalink
Update Chat Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vicwere committed Jun 18, 2024
1 parent d3524b5 commit caa9fe3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions routes/processes/nishauri.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const {
} = require("../../models/n_chat_log");




generateOtp = function (size) {
const zeros = '0'.repeat(size - 1);
const x = parseFloat('1' + zeros);
Expand Down Expand Up @@ -1851,10 +1853,11 @@ router.post('/chat', async (req, res) => {
const responseMessage = messages.toString();

// Save the chat log
let chatlog = NChatLogs.create({
user_id: base64.decode(userid),
quiz: question_,
response: responseMessage

var log_chat = NChatLogs.create({
user_id: base64.decode(userid),
quiz:question_,
response: messages.toString()
});


Expand Down

0 comments on commit caa9fe3

Please sign in to comment.