mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-11 14:08:52 +00:00
worker cache bugfix
This commit is contained in:
@@ -72,12 +72,14 @@ func (api *WebAPI) GetWorker(r *Request) {
|
|||||||
|
|
||||||
if worker != nil {
|
if worker != nil {
|
||||||
|
|
||||||
worker.Secret = nil
|
|
||||||
|
|
||||||
r.OkJson(JsonResponse{
|
r.OkJson(JsonResponse{
|
||||||
Ok: true,
|
Ok: true,
|
||||||
Content: GetWorkerResponse{
|
Content: GetWorkerResponse{
|
||||||
Worker: worker,
|
Worker: &storage.Worker{
|
||||||
|
Alias: worker.Alias,
|
||||||
|
Id: worker.Id,
|
||||||
|
Created: worker.Created,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user