fix db function
This commit is contained in:
@@ -3,13 +3,13 @@ RETURNS void
|
|||||||
LANGUAGE plpgsql
|
LANGUAGE plpgsql
|
||||||
AS $$
|
AS $$
|
||||||
BEGIN
|
BEGIN
|
||||||
select net.http_post(
|
PERFORM net.http_post(
|
||||||
url := 'https://test.medreport.ee/api/job/sync-analysis-results',
|
url := 'https://test.medreport.ee/api/job/sync-analysis-results',
|
||||||
headers := jsonb_build_object(
|
headers := jsonb_build_object(
|
||||||
'Content-Type', 'application/json',
|
'Content-Type', 'application/json',
|
||||||
'x-jobs-api-key', 'fd26ec26-70ed-11f0-9e95-431ac3b15a84'
|
'x-jobs-api-key', 'fd26ec26-70ed-11f0-9e95-431ac3b15a84'
|
||||||
)
|
)
|
||||||
) as request_id;
|
);
|
||||||
END;
|
END;
|
||||||
$$;
|
$$;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user