Skip to content

Commit

Permalink
fix: updated_at when create book
Browse files Browse the repository at this point in the history
  • Loading branch information
ufaboy committed Apr 11, 2024
1 parent fe1e35e commit 95cb8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/services/bookService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 95cb8fd

Please sign in to comment.