From a0b13b219552a2e306a8e0398a0aa4e3065c2c11 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 29 Aug 2024 17:08:10 +0200 Subject: [PATCH] feat(spot): fixed spots task table name --- backend/pkg/spot/transcoder/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pkg/spot/transcoder/tasks.go b/backend/pkg/spot/transcoder/tasks.go index 4756fc66a..48bc4ab02 100644 --- a/backend/pkg/spot/transcoder/tasks.go +++ b/backend/pkg/spot/transcoder/tasks.go @@ -41,7 +41,7 @@ func (t *Task) HasToTranscode() bool { } func (t *tasksImpl) Add(spotID uint64, crop []int, duration int) error { - sql := `INSERT INTO spot_tasks (id, crop, duration, status, added_time) VALUES ($1, $2, $3, $4, $5)` + sql := `INSERT INTO spots_tasks (id, crop, duration, status, added_time) VALUES ($1, $2, $3, $4, $5)` if err := t.conn.Exec(sql, spotID, crop, duration, "pending", time.Now()); err != nil { return err }