mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 00:36:02 +01:00
Merge pull request #10394 from heww/cherry-pick-pr-10393
[Cherry pick]fix(scanner): use new created ormer for transaction
This commit is contained in:
commit
ceb4bbf849
@ -130,7 +130,7 @@ func ListRegistrations(query *q.Query) ([]*Registration, error) {
|
||||
|
||||
// SetDefaultRegistration sets the specified registration as default one
|
||||
func SetDefaultRegistration(UUID string) error {
|
||||
o := dao.GetOrmer()
|
||||
o := orm.NewOrm()
|
||||
err := o.Begin()
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user