fix: send correct field names when updating book progress

This commit is contained in:
2026-08-10 23:58:42 -04:00
parent 3091cc879d
commit 3ae3dcb0d0
3 changed files with 11 additions and 28 deletions
-14
View File
@@ -3,7 +3,6 @@ import { error } from '@sveltejs/kit';
import {
bookCoverUpload,
booksUpload,
bookIdsSchema,
bookQuerySchema,
deleteBookFilesSchema,
deleteBooksSchema,
@@ -149,16 +148,3 @@ export const updateBookProgress = command(
}
}
);
export const markBooksAsComplete = command(bookIdsSchema, async (data) => {
const { locals } = getRequestEvent();
const params = createQueryParams(data);
const response = await locals.api.post(`/books/completed?${params.toString()}`, {});
if (!response.ok) {
const message = await response.text();
error(response.status, message);
}
});