fix task creation

This commit is contained in:
Samuel Lorch 2024-06-22 22:15:42 +02:00
parent 13ea1cb755
commit f5e3e89d20

View file

@ -182,7 +182,7 @@ func createTask(ctx context.Context, r *http.Request) error {
slog.Info("Got Task Create", "library", library, "health", health, "type", typ) 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 { if err != nil {
return fmt.Errorf("Query Files: %w", err) return fmt.Errorf("Query Files: %w", err)
} }