Skip to content

Commit

Permalink
fix(engine): Get Resource.updated_at working
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt committed May 2, 2024
1 parent ef89cbb commit 6b8d709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracecat/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Resource(SQLModel):
sa_type=TIMESTAMP(timezone=True), # UTC Timestamp
sa_column_kwargs={
"server_default": text("(now() AT TIME ZONE 'utc'::text)"),
"server_onupdate": text("(now() AT TIME ZONE 'utc'::text)"),
"onupdate": text("(now() AT TIME ZONE 'utc'::text)"),
"nullable": False,
},
)
Expand Down

0 comments on commit 6b8d709

Please sign in to comment.