feat(backend): insert null comment to ux_test_signal is string is empty

This commit is contained in:
Alexander 2023-12-04 17:28:03 +01:00
parent 401787efcb
commit 746222d729

View file

@ -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