diff --git a/src/pkg/scan/dao/scanner/registration.go b/src/pkg/scan/dao/scanner/registration.go index ad9858489..4dab9ca09 100644 --- a/src/pkg/scan/dao/scanner/registration.go +++ b/src/pkg/scan/dao/scanner/registration.go @@ -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