From 3c621c01ce60cb20d847e304c94a3644bdcc2ab7 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Sun, 12 Apr 2026 16:57:41 +0200 Subject: [PATCH] Collection: fixed adding book --- front/src/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/api.js b/front/src/api.js index a1db6fa..aac0c21 100644 --- a/front/src/api.js +++ b/front/src/api.js @@ -130,7 +130,7 @@ export function postCollection(collection) { return genericPayloadCall('/ws/collection', collection, 'POST') } -export function postCollectionAddBook(collectionId, position) { +export function postCollectionAddBook(collectionId, bookId) { return genericPayloadCall( '/ws/collection/' + collectionId + '/addbook', { bookId: bookId },