aboutsummaryrefslogtreecommitdiff
path: root/models/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index f2460e1a..0ca32bc2 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -785,7 +785,7 @@ func NotifyWatchers(act *Action) error {
// IsWatching checks if user has watched given repository.
func IsWatching(uid, rid int64) bool {
- has, _ := orm.Get(&Watch{0, rid, uid})
+ has, _ := orm.Get(&Watch{0, uid, rid})
return has
}