mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 14:59:03 +00:00
Add project secret & bug fix
This commit is contained in:
10
api/task.go
10
api/task.go
@@ -209,7 +209,17 @@ func (api *WebAPI) ReleaseTask(r *Request) {
|
||||
Ok: false,
|
||||
Message: "Could not parse request",
|
||||
}, 400)
|
||||
return
|
||||
}
|
||||
|
||||
if !req.IsValid() {
|
||||
r.Json(JsonResponse{
|
||||
Ok: false,
|
||||
Message: "Invalid request",
|
||||
}, 400)
|
||||
return
|
||||
}
|
||||
|
||||
res := api.Database.ReleaseTask(req.TaskId, worker.Id, req.Result, req.Verification)
|
||||
|
||||
response := JsonResponse{
|
||||
|
||||
Reference in New Issue
Block a user