mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move (re)creation of stats to its own function
This commit is contained in:
@ -804,7 +804,7 @@ app.post('/getstats', jsonParser, function (request, response) {
|
||||
*/
|
||||
app.post('/recreatestats', jsonParser, async function (request, response) {
|
||||
try {
|
||||
await statsHelpers.loadStatsFile(DIRECTORIES.chats, DIRECTORIES.characters, true);
|
||||
await statsHelpers.recreateStats(DIRECTORIES.chats, DIRECTORIES.characters);
|
||||
return response.sendStatus(200);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
Reference in New Issue
Block a user