Browse Source

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

pull/5381/head
Unknwon 6 years ago
parent
commit
4c1a479a60
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
  1. 2
      gogs.go
  2. 3
      models/ssh_key.go
  3. 2
      templates/.VERSION

2
gogs.go

@ -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

3
models/ssh_key.go

@ -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
}

2
templates/.VERSION

@ -1 +1 @@
0.11.59.0627
0.11.60.0814

Loading…
Cancel
Save