Updated deps

This commit is contained in:
Jamie Curnow committed 2024-09-09 08:42:30 +10:00
1 parent 16c0276401
commit f73e09007a
4 files changed
+46 -140

No files matched your search

+1 -1
View File
@@ -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
+3 -2
View File
@@ -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"