summaryrefslogtreecommitdiffstats
path: root/cmd/serve.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/serve.go')
-rw-r--r--cmd/serve.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index 9638da8bae..ec1da3beef 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -146,12 +146,12 @@ func runServ(c *cli.Context) {
fail("Key permission denied", "Cannot push with deployment key: %d", key.ID)
}
// Check if this deploy key belongs to current repository.
- if !models.HasDeployKey(key.ID, repo.Id) {
- fail("Key access denied", "Key access denied: %d-%d", key.ID, repo.Id)
+ if !models.HasDeployKey(key.ID, repo.ID) {
+ fail("Key access denied", "Key access denied: %d-%d", key.ID, repo.ID)
}
// Update deploy key activity.
- deployKey, err := models.GetDeployKeyByRepo(key.ID, repo.Id)
+ deployKey, err := models.GetDeployKeyByRepo(key.ID, repo.ID)
if err != nil {
fail("Internal error", "GetDeployKey: %v", err)
}