mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Updated deps
This commit is contained in:
@ -37,7 +37,7 @@ func GetDB() *gorm.DB {
|
||||
return dbInstance
|
||||
}
|
||||
|
||||
// SetDB will set the dbOnstance to this
|
||||
// SetDB will set the dbInstance to this
|
||||
// Used by unit testing to set the db to a mock database
|
||||
func SetDB(db *gorm.DB) {
|
||||
dbInstance = db
|
||||
|
@ -1,11 +1,12 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"npm/internal/config"
|
||||
"npm/internal/database"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"npm/internal/config"
|
||||
"npm/internal/database"
|
||||
|
||||
"github.com/DATA-DOG/go-sqlmock"
|
||||
"gorm.io/driver/postgres"
|
||||
"gorm.io/gorm"
|
||||
|
Reference in New Issue
Block a user