diff --git a/package.json b/package.json index 483a3f3..e19dcdc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "type": "module", "name": "lib-ff", "description": "This project was bootstrapped with Fastify-CLI.", - "version": "1.2.2", + "version": "1.2.3", "main": "app.ts", "directories": { "test": "test" diff --git a/src/services/bookService.ts b/src/services/bookService.ts index 484cbcd..78b8390 100644 --- a/src/services/bookService.ts +++ b/src/services/bookService.ts @@ -30,7 +30,7 @@ async function createBook(data: BaseBook) { text_length: data.text?.length, author_id: data.author_id, series_id: data.series_id, - updated_at: Date(), + updated_at: new Date(), book_tag: { createMany: { data: data.tag_ids.map((item) => {