Fix ESLint

This commit is contained in:
Cohee 2023-12-09 16:09:10 +02:00
parent 04c83eae71
commit b915b89ca9

View File

@ -6,10 +6,10 @@ import {
deleteCharacter,
event_types,
eventSource,
getCharacters, getPastCharacterChats,
getCharacters,
getPastCharacterChats,
getRequestHeaders,
printCharacters,
this_chid,
} from '../script.js';
import { favsToHotswap } from './RossAscends-mods.js';
@ -119,12 +119,12 @@ class CharacterContextMenu {
return fetch('/api/characters/delete', {
method: 'POST',
headers: getRequestHeaders(),
body: JSON.stringify({avatar_url: character.avatar, delete_chats: deleteChats}),
body: JSON.stringify({ avatar_url: character.avatar, delete_chats: deleteChats }),
cache: 'no-cache',
}).then(response => {
if (response.ok) {
return deleteCharacter(character.name, character.avatar, false).then(() => {
eventSource.emit('characterDeleted', {id: characterId, character: characters[characterId]});
eventSource.emit('characterDeleted', { id: characterId, character: characters[characterId] });
if (deleteChats) getPastCharacterChats(characterId).then(pastChats => {
for (const chat of pastChats) {
const name = chat.file_name.replace('.jsonl', '');