mirror of
https://github.com/simon987/task_tracker.git
synced 2025-04-19 10:16:41 +00:00
worker cache bugfix
This commit is contained in:
parent
3bad57523a
commit
016676e0f3
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user