فهرست منبع

update the updated column!

ryan 7 سال پیش
والد
کامیت
0c7294593c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      pkg/services/sqlstore/annotation.go

+ 1 - 1
pkg/services/sqlstore/annotation.go

@@ -113,7 +113,7 @@ func (r *SqlAnnotationRepo) Update(item *annotations.Item) error {
 
 
 		existing.Tags = item.Tags
 		existing.Tags = item.Tags
 
 
-		if _, err := sess.Table("annotation").Id(existing.Id).Cols("epoch", "text", "region_id", "tags").Update(existing); err != nil {
+		if _, err := sess.Table("annotation").Id(existing.Id).Cols("epoch", "text", "region_id", "updated", "tags").Update(existing); err != nil {
 			return err
 			return err
 		}
 		}