Skip to content

Commit

Permalink
fix(engine): Get Resource.updated_at working (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
daryllimyt authored and topher-lo committed May 4, 2024
1 parent 742bc2a commit 79cc291
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 79cc291

Please sign in to comment.