feat(backend): insert null comment to ux_test_signal is string is empty
This commit is contained in:
parent
401787efcb
commit
746222d729
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func (u *uxTestingImpl) SetTaskSignal(signal *TaskSignal) error {
|
|||
INSERT INTO ut_tests_signals (
|
||||
session_id, test_id, task_id, status, comment, timestamp, duration
|
||||
) VALUES (
|
||||
$1, $2, $3, $4, $5, $6,
|
||||
$1, $2, $3, $4, NULLIF($5, ''), $6,
|
||||
CASE
|
||||
WHEN $7 <= 0 THEN NULL
|
||||
ELSE $7
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue