worker cache bugfix

This commit is contained in:
simon987 2019-02-21 20:04:02 -05:00
parent 3bad57523a
commit 016676e0f3

View File

@ -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 {