Skip to content

Commit

Permalink
fix(api): add timeout statement to upload function (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Oct 28, 2021
1 parent b6c0ce5 commit bf17756
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/db/postgres/functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ DECLARE
pin_location_result_id BIGINT;
inserted_upload_id BIGINT;
BEGIN
-- Set timeout as imposed by heroku
SET LOCAL statement_timeout = '30s';

-- Add to content table if new
insert into content (cid, dag_size, updated_at, inserted_at)
values (data ->> 'content_cid',
Expand Down

0 comments on commit bf17756

Please sign in to comment.