refactor: cleanup auto-rename code

This commit is contained in:
Zoe
2026-02-25 20:38:55 +00:00
parent e4536cbb8c
commit c3370c27a7
6 changed files with 71 additions and 40 deletions
+4 -1
View File
@@ -66,7 +66,10 @@ const cancelAutoRename = async (topicId: string) => {
const renameId = activeAutoRenames.get(topicId);
if (!renameId) return;
await $fetch(`/api/topic/auto-rename/cancel/${renameId}`, {
await $fetch(`/api/auto-rename/cancel`, {
body: {
renameId,
},
method: 'POST',
});