Skip to content

Commit

Permalink
feat: updated at
Browse files Browse the repository at this point in the history
  • Loading branch information
veryCrunchy committed May 3, 2024
1 parent 6ccc731 commit b3d8d75
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"cookie-parser": "^1.4.6",
"cron": "^3.1.6",
"dotenv": "^16.4.4",
"drizzle-orm": "^0.29.3",
"drizzle-orm": "^0.30.10",
"express": "^4.18.2",
"garph": "^0.6.6",
"graphql": "^16.8.1",
Expand Down
19 changes: 14 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const createdUpdated = {
.$defaultFn(() => new Date()),
updatedAt: datetime("updated_at")
.notNull()
.$defaultFn(() => new Date()),
.$onUpdate(() => new Date()),
};

export const users = mysqlTable("users", {
Expand Down

0 comments on commit b3d8d75

Please sign in to comment.