From 32ef14d1d5a339d3237da2463b3750b065130c59 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Tue, 7 May 2024 22:01:21 +0700 Subject: [PATCH] Update prober last activity timestamp This executed after prober submit fetch report --- internal/repo/monero.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/repo/monero.go b/internal/repo/monero.go index 8af3c66..bc66ecc 100644 --- a/internal/repo/monero.go +++ b/internal/repo/monero.go @@ -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 }