Add placeholders to group folders for [BUG] docker-compose build image will not start #434

This commit is contained in:
SillyLossy
2023-06-02 20:00:58 +03:00
parent cf9248121f
commit 737bb5a030
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
# Put Group Chat JSONL files here
+1
View File
@@ -0,0 +1 @@
# Put Group JSON files here
+2 -2
View File
@@ -1938,8 +1938,8 @@ app.post('/getgroups', jsonParser, (_, response) => {
fs.mkdirSync(directories.groups);
}
const files = fs.readdirSync(directories.groups);
const chats = fs.readdirSync(directories.groupChats);
const files = fs.readdirSync(directories.groups).filter(x => path.extname(x) === '.json');
const chats = fs.readdirSync(directories.groupChats).filter(x => path.extname(x) === '.jsonl');
files.forEach(function (file) {
try {