mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-24 21:34:36 -04:00
Fix #452
This commit is contained in:
parent
e004ec08e9
commit
33659ed9a5
2
gogs.go
2
gogs.go
@ -17,7 +17,7 @@ import (
|
|||||||
"github.com/gogits/gogs/modules/setting"
|
"github.com/gogits/gogs/modules/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.5.0.0907 Beta"
|
const APP_VER = "0.5.0.0909 Beta"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
@ -99,7 +99,7 @@ func GetWebhookById(hookId int64) (*Webhook, error) {
|
|||||||
|
|
||||||
// GetActiveWebhooksByRepoId returns all active webhooks of repository.
|
// GetActiveWebhooksByRepoId returns all active webhooks of repository.
|
||||||
func GetActiveWebhooksByRepoId(repoId int64) (ws []*Webhook, err error) {
|
func GetActiveWebhooksByRepoId(repoId int64) (ws []*Webhook, err error) {
|
||||||
err = x.Find(&ws, &Webhook{RepoId: repoId, IsActive: true})
|
err = x.Where("repo_id=?", repoId).And("is_active=?", true).Find(&ws)
|
||||||
return ws, err
|
return ws, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ func GetWebhooksByOrgId(orgId int64) (ws []*Webhook, err error) {
|
|||||||
|
|
||||||
// GetActiveWebhooksByOrgId returns all active webhooks for an organization.
|
// GetActiveWebhooksByOrgId returns all active webhooks for an organization.
|
||||||
func GetActiveWebhooksByOrgId(orgId int64) (ws []*Webhook, err error) {
|
func GetActiveWebhooksByOrgId(orgId int64) (ws []*Webhook, err error) {
|
||||||
err = x.Find(&ws, &Webhook{OrgId: orgId, IsActive: true})
|
err = x.Where("org_id=?", orgId).And("is_active=?", true).Find(&ws)
|
||||||
return ws, err
|
return ws, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
0.5.0.0907 Beta
|
0.5.0.0909 Beta
|
Loading…
Reference in New Issue
Block a user