Avoid crashing when no compare arguments are provided
This commit is contained in:
parent
3e15900c56
commit
c751031a26
1 changed files with 4 additions and 2 deletions
|
|
@ -182,14 +182,16 @@
|
|||
(($ <invalid-query-parameter> value)
|
||||
(with-thread-postgresql-connection
|
||||
(lambda (conn)
|
||||
(select-job-for-commit conn value))))
|
||||
(and (string? value)
|
||||
(select-job-for-commit conn value)))))
|
||||
(_ #f)))
|
||||
(target-job
|
||||
(match (assq-ref query-parameters 'target_commit)
|
||||
(($ <invalid-query-parameter> value)
|
||||
(with-thread-postgresql-connection
|
||||
(lambda (conn)
|
||||
(select-job-for-commit conn value))))
|
||||
(and (string? value)
|
||||
(select-job-for-commit conn value)))))
|
||||
(_ #f))))
|
||||
(case (most-appropriate-mime-type
|
||||
'(application/json text/html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue