fix(warp): surface update-clock persistence failures (#6209)

Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
n0ctal
2026-08-13 15:31:05 +05:00
committed by GitHub
parent 79ef85b59f
commit 64f4f0746c
5 changed files with 122 additions and 8 deletions
+9 -3
View File
@@ -391,11 +391,17 @@ func (s *SettingService) setInt(key string, value int) error {
}
func (s *SettingService) GetWarpLastUpdate() (int64, error) {
val, err := s.getString("warpLastUpdate")
if err != nil || val == "" {
setting, err := s.getSetting("warpLastUpdate")
if database.IsNotFound(err) {
return 0, nil
}
if err != nil {
return 0, err
}
return strconv.ParseInt(val, 10, 64)
if setting.Value == "" {
return 0, nil
}
return strconv.ParseInt(setting.Value, 10, 64)
}
func (s *SettingService) SetWarpLastUpdate(val int64) error {