From f5e3e89d20522b0e37b18c2912f8024d2d224ced Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 22 Jun 2024 22:15:42 +0200 Subject: [PATCH] fix task creation --- server/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/task.go b/server/task.go index 9714e57..a0365cf 100644 --- a/server/task.go +++ b/server/task.go @@ -182,7 +182,7 @@ func createTask(ctx context.Context, r *http.Request) error { slog.Info("Got Task Create", "library", library, "health", health, "type", typ) - rows, err := db.Query(r.Context(), "SELECT id, path, size, status, health, md5, updated_at FROM files where library_id = $1 AND status = $2 AND (-1 = $3 OR health = $3)", library, constants.FILE_STATUS_EXISTS, health) + rows, err := db.Query(r.Context(), "SELECT id, path, size, status, health, transcode, md5, updated_at FROM files where library_id = $1 AND status = $2 AND (-1 = $3 OR health = $3)", library, constants.FILE_STATUS_EXISTS, health) if err != nil { return fmt.Errorf("Query Files: %w", err) }