Skip to content

Commit

Permalink
fix: upload fn ts wrongly inserted (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Oct 28, 2021
1 parent bf17756 commit c9de809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/db/postgres/functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ BEGIN
data ->> 'source_cid',
(data ->> 'type')::upload_type,
data ->> 'name',
(data ->> 'updated_at')::timestamptz,
(data ->> 'inserted_at')::timestamptz)
(data ->> 'inserted_at')::timestamptz,
(data ->> 'updated_at')::timestamptz)
ON CONFLICT ( user_id, source_cid ) DO UPDATE
SET "updated_at" = (data ->> 'updated_at')::timestamptz,
"deleted_at" = null
Expand Down

0 comments on commit c9de809

Please sign in to comment.