n39librarian/middleware/queries/returnBook.ts

5 lines
180 B
TypeScript
Raw Permalink Normal View History

import { Book } from "../types/Book";
export const returnBook = ({ uuid }: Pick<Book, "uuid">) =>
`UPDATE bookData SET checkoutBy = NULL, contact = NULL WHERE uuid='${uuid}';`;