n39librarian/middleware/queries/moveShelf.ts

7 lines
207 B
TypeScript
Raw Normal View History

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