|
|
@@ -38,7 +38,7 @@ const refreshChat = async function (client, sessionsId) { |
|
|
|
last_sessionId: client.info.me._serialized, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
// console.log("masuk sini", chatsExist.id); |
|
|
|
console.log("updating old chat"); |
|
|
|
let id = chatsExist.id; |
|
|
|
strapi.query("chats").update( |
|
|
|
{ id }, |
|
|
|