From ec6f0a1893a44f1529ee74edf4ffc190331d5777 Mon Sep 17 00:00:00 2001 From: Christian Ditaputratama Date: Thu, 31 Oct 2024 22:40:38 +0700 Subject: [PATCH] Changed `LastChecked` from `uint` to `int64` Since the LastChecked record is storing unix timestamp, using `int64` make it easier to work with `time` package. --- internal/monero/monero.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/monero/monero.go b/internal/monero/monero.go index 595ebac..daec765 100644 --- a/internal/monero/monero.go +++ b/internal/monero/monero.go @@ -50,7 +50,7 @@ type Node struct { Latitude float64 `json:"latitude" db:"lat"` Longitude float64 `json:"longitude" db:"lon"` DateEntered uint `json:"date_entered,omitempty" db:"date_entered"` - LastChecked uint `json:"last_checked" db:"last_checked"` + LastChecked int64 `json:"last_checked" db:"last_checked"` FailedCount uint `json:"failed_count,omitempty" db:"failed_count"` LastCheckStatus types.JSONText `json:"last_check_statuses" db:"last_check_status"` CORSCapable bool `json:"cors" db:"cors_capable"`