fix vault val

This commit is contained in:
shoopea 2020-06-28 13:14:23 +02:00
parent 3ffba74e1f
commit 635492ad36

5
job.go
View File

@ -2608,6 +2608,7 @@ func jobVaultVal(j Job) {
var (
p JobPayloadVaultVal
p2 JobPayloadGetVault
b []byte
)
err := setJobStart(j.ID64)
@ -2623,7 +2624,7 @@ func jobVaultVal(j Job) {
p2.ItemTypeList = append(p2.ItemTypeList, cacheObjSubType[`item_rec`])
p2.ItemTypeList = append(p2.ItemTypeList, cacheObjSubType[`item_part`])
b, err := json.Marshal(p2)
b, err = json.Marshal(p2)
logOnError(err, "jobVaultVal : Marshal(p2)")
jobID64, err := createJob(cacheObjSubType[`job_get_vault`], objJobPriority, j.UserID64, 0, time.Now().UTC(), b)
@ -2641,7 +2642,7 @@ func jobVaultVal(j Job) {
return
}
b := getJobPayload(p.VaultJobID64)
b = getJobPayload(p.VaultJobID64)
err = json.Unmarshal(b, &p2)
logOnError(err, "jobVaultVal : Unmarshal(p2)")