diff --git a/bin/evening_detective_server b/bin/evening_detective_server index 13cf3d3..f6b86f3 100755 Binary files a/bin/evening_detective_server and b/bin/evening_detective_server differ diff --git a/internal/repos/scenarios_repo/repo.go b/internal/repos/scenarios_repo/repo.go index 833f796..e9d8028 100644 --- a/internal/repos/scenarios_repo/repo.go +++ b/internal/repos/scenarios_repo/repo.go @@ -271,9 +271,9 @@ func (r *ScenariosRepo) UpdateScenarioStatusByID( ctx, `UPDATE scenarios SET - status = $1, + status = $1::varchar, published_at = CASE - WHEN $1 = 'public' AND published_at IS NULL THEN NOW() + WHEN $1::varchar = 'public' AND published_at IS NULL THEN NOW() ELSE published_at END, updated_at = NOW()