models: fix delete public keys ORM syntax (#5376)

pull/5381/head
Unknwon 2018-08-14 22:10:44 +08:00
parent cc95d251d6
commit 4c1a479a60
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
3 changed files with 3 additions and 4 deletions

View File

@ -16,7 +16,7 @@ import (
"github.com/gogs/gogs/pkg/setting"
)
const APP_VER = "0.11.59.0627"
const APP_VER = "0.11.60.0814"
func init() {
setting.AppVer = APP_VER

View File

@ -25,7 +25,6 @@ import (
"github.com/gogs/gogs/pkg/process"
"github.com/gogs/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/tool"
)
const (
@ -479,7 +478,7 @@ func deletePublicKeys(e *xorm.Session, keyIDs ...int64) error {
return nil
}
_, err := e.In("id", strings.Join(tool.Int64sToStrings(keyIDs), ",")).Delete(new(PublicKey))
_, err := e.In("id", keyIDs).Delete(new(PublicKey))
return err
}

View File

@ -1 +1 @@
0.11.59.0627
0.11.60.0814