feat(MoveToShelf): move selected books to shelf
This commit is contained in:
parent
65e9aa2e0b
commit
c03aa30cfd
12 changed files with 331 additions and 69 deletions
middleware/queries
6
middleware/queries/moveShelf.ts
Normal file
6
middleware/queries/moveShelf.ts
Normal 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(
|
||||
"', '"
|
||||
)}');`;
|
Loading…
Add table
Add a link
Reference in a new issue