feat(spot): fixed spots task table name

This commit is contained in:
Alexander 2024-08-29 17:08:10 +02:00
parent 345f316b27
commit a0b13b2195

View file

@ -41,7 +41,7 @@ func (t *Task) HasToTranscode() bool {
} }
func (t *tasksImpl) Add(spotID uint64, crop []int, duration int) error { 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 { if err := t.conn.Exec(sql, spotID, crop, duration, "pending", time.Now()); err != nil {
return err return err
} }