diff --git a/pkg/watcher/coach.go b/pkg/watcher/coach.go index 554544e..49bab25 100644 --- a/pkg/watcher/coach.go +++ b/pkg/watcher/coach.go @@ -86,7 +86,7 @@ func (c *CoachOutlet) Restart() { } func (c *CoachOutlet) Watch() { c.ctx, c.cancel = context.WithCancel(c.fCtx) - if err := c.db.Model(&model.Product{}).Updates(map[string]interface{}{"watch": true, "orderable": false}).Error; err != nil { + if err := c.db.Model(&model.Product{}).Where("uid", c.Uid()).Updates(map[string]interface{}{"watch": true, "orderable": false}).Error; err != nil { glog.Errorf("watch update db err: %v", err) err = nil }