Update prober last activity timestamp

This executed after prober submit fetch report
This commit is contained in:
Cristian Ditaputratama 2024-05-07 22:01:21 +07:00
parent a2669c558f
commit 32ef14d1d5
Signed by: ditatompel
GPG key ID: 31D3D06D77950979

View file

@ -471,6 +471,8 @@ func (repo *MoneroRepo) ProcessJob(report ProbeReport, proberId int64) error {
repo.Delete(report.NodeInfo.Id)
}
repo.db.Exec(`UPDATE tbl_prober SET last_submit_ts = ? WHERE id = ?`, now.Unix(), proberId)
return err
}