Skip to content

Commit 315f2cd

Browse files
authored
Merge pull request #587 from leMedi/fix/calling-pg-json_to_recordset-on-string
cast job object to json for pg json_to_recordset
2 parents 88263ff + dbab7ac commit 315f2cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plans.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ function insertJobs (schema, { table, name, returnId = true }) {
715715
WHEN right("startAfter", 1) = 'Z' THEN CAST("startAfter" as timestamp with time zone)
716716
ELSE now() + CAST(COALESCE("startAfter",'0') as interval)
717717
END as start_after
718-
FROM json_to_recordset($1) as x (
718+
FROM json_to_recordset($1::json) as x (
719719
id uuid,
720720
name text,
721721
priority integer,

0 commit comments

Comments
 (0)