refactor: cleanup auto-rename code
This commit is contained in:
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user