diff --git a/komga-webui/src/components/PageHashKnownCard.vue b/komga-webui/src/components/PageHashKnownCard.vue index 2a89e7e8c..2d0b8682c 100644 --- a/komga-webui/src/components/PageHashKnownCard.vue +++ b/komga-webui/src/components/PageHashKnownCard.vue @@ -143,7 +143,7 @@ export default Vue.extend({ }, async deleteMatches() { if(!this.deleteRequested) { - await this.$komgaPageHashes.performDelete(this.hash) + await this.$komgaPageHashes.deleteAllMatches(this.hash) this.deleteRequested = true } }, diff --git a/komga-webui/src/services/komga-pagehashes.service.ts b/komga-webui/src/services/komga-pagehashes.service.ts index 45d55085f..fc1cdc816 100644 --- a/komga-webui/src/services/komga-pagehashes.service.ts +++ b/komga-webui/src/services/komga-pagehashes.service.ts @@ -82,13 +82,13 @@ export default class KomgaPageHashesService { } } - async performDelete(pageHash: PageHashKnownDto) { + async deleteAllMatches(pageHash: PageHashKnownDto) { try { const params = { media_type: pageHash.mediaType, file_size: pageHash.size || -1, } - await this.http.post(`${API_PAGE_HASH}/${pageHash.hash}/perform-delete`, pageHash, { + await this.http.post(`${API_PAGE_HASH}/${pageHash.hash}/delete-all`, pageHash, { params: params, paramsSerializer: params => qs.stringify(params, {indices: false}), }) diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt index 60f3e88e0..1eb3c0e37 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/PageHashController.kt @@ -120,7 +120,7 @@ class PageHashController( } } - @PostMapping("{pageHash}/perform-delete") + @PostMapping("{pageHash}/delete-all") @ResponseStatus(HttpStatus.ACCEPTED) fun performDelete( @PathVariable pageHash: String,