Fix an error when the log string is empty (#1058)

This commit is contained in:
Ambroise
2023-07-01 10:32:57 +02:00
committed by GitHub
parent 4ec1c2abec
commit 61b9e01b52

View File

@@ -279,7 +279,7 @@ sub jq_complete {
->search({ job => $job->id }, { for => 'update' })
->update({
status => $job->status,
log => $job->log,
log => (ref($job->log) eq ref('')) ? $job->log : '',
started => $job->started,
finished => $job->finished,
(($job->action eq 'hook') ? (subaction => $job->subaction) : ()),