Fix sql
All checks were successful
/ release (push) Successful in 48s

This commit is contained in:
speatzle 2025-03-19 09:57:18 +00:00
parent d0d2529570
commit 2630ebb0cf

View file

@ -48,7 +48,7 @@ func handleUpload(w http.ResponseWriter, r *http.Request) {
var fileid int
var workerid string
var status constants.TaskStatus
err = db.QueryRow(r.Context(), "SELECT file_id, worker_id, status FROM files WHERE id = $1", taskid).Scan(&fileid, &workerid, &status)
err = db.QueryRow(r.Context(), "SELECT file_id, worker_id, status FROM tasks WHERE id = $1", taskid).Scan(&fileid, &workerid, &status)
if err != nil {
errorUpload(r, w, 0, "Getting Task for Upload", err)
return