Return the data instead of the file

master
Abdullah Alfaraj 2023-11-29 08:41:20 +03:00
parent 21b7024ff1
commit 0d06ed6ad3
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ async function loadPromptShortcut(file_name) {
if (file.isFile) {
await file.write('{}', {append: false});
data = {};
return file;
return data
}
console.warn(e)
return {}