From 4c1a479a60c0cebd7715f6e79d48471b91b28671 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 14 Aug 2018 22:10:44 +0800 Subject: models: fix delete public keys ORM syntax (#5376) --- gogs.go | 2 +- models/ssh_key.go | 3 +-- templates/.VERSION | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gogs.go b/gogs.go index fc2292b1..a8386ab5 100644 --- a/gogs.go +++ b/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 diff --git a/models/ssh_key.go b/models/ssh_key.go index 3a8d205f..3d99f207 100644 --- a/models/ssh_key.go +++ b/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 } diff --git a/templates/.VERSION b/templates/.VERSION index 7906efe7..94168071 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.11.59.0627 +0.11.60.0814 -- cgit v1.2.3