From f84d9c46574a2cd663105859035bc17891270923 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 14 八月 2023 10:41:54 +0800
Subject: [PATCH] Merge branch 'master' into fly

---
 service/timeSpent.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/service/timeSpent.go b/service/timeSpent.go
index 4c245ef..24450da 100644
--- a/service/timeSpent.go
+++ b/service/timeSpent.go
@@ -58,7 +58,7 @@
 }
 
 func (TimeSpentService) UpdateTimeSpent(timeSpent *model.TimeSpent) int {
-		err := model.NewTimeSpentSearch().Save(timeSpent)
+		err := model.NewTimeSpentSearch().SetId(timeSpent.Id).Save(timeSpent)
 		if err != nil {
 			return ecode.DBErr
 		}

--
Gitblit v1.8.0