From 5145e30be3c29d08533f57440afaa201edecedce Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 16 Mar 2025 21:45:07 +0200 Subject: [PATCH] Don't bail early if empty token provided from UI --- src/endpoints/chats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoints/chats.js b/src/endpoints/chats.js index a59486251..56ea50039 100644 --- a/src/endpoints/chats.js +++ b/src/endpoints/chats.js @@ -319,7 +319,7 @@ function readFirstLine(filePath) { */ async function checkChatIntegrity(filePath, integritySlug) { // If the chat file doesn't exist, assume it's intact - if (!integritySlug || !fs.existsSync(filePath)) { + if (!fs.existsSync(filePath)) { return true; }