Add placeholders to group folders for [BUG] docker-compose build image will not start #434
This commit is contained in:
@@ -0,0 +1 @@
|
||||
# Put Group Chat JSONL files here
|
||||
@@ -0,0 +1 @@
|
||||
# Put Group JSON files here
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user