feat(MoveToShelf): move selected books to shelf

This commit is contained in:
0ry5 2024-09-30 21:32:24 +02:00
parent 65e9aa2e0b
commit c03aa30cfd
12 changed files with 331 additions and 69 deletions
middleware/queries

View file

@ -0,0 +1,6 @@
import { MoveShelfAction } from "../types/Book";
export const moveShelf = ({ target, books }: MoveShelfAction) =>
`UPDATE bookData SET shelf='${target}' WHERE uuid IN ('${books.join(
"', '"
)}');`;