diff --git a/go.mod b/go.mod index 3588574..891a50b 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.5 require ( github.com/arangodb/go-driver/v2 v2.1.0 github.com/gofiber/fiber/v2 v2.52.5 - github.com/ortelius/scec-commons v0.1.32 + github.com/ortelius/scec-commons v0.1.33 github.com/package-url/packageurl-go v0.1.3 github.com/swaggo/swag v1.16.3 golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 diff --git a/go.sum b/go.sum index d00450e..3b21d72 100644 --- a/go.sum +++ b/go.sum @@ -77,6 +77,8 @@ github.com/multiformats/go-varint v0.0.7 h1:sWSGR+f/eu5ABZA2ZpYKBILXTTs9JWpdEM/n github.com/multiformats/go-varint v0.0.7/go.mod h1:r8PUYw/fD/SjBCiKOoDlGF6QawOELpZAu9eioSos/OU= github.com/ortelius/scec-commons v0.1.32 h1:EZFIh117gcaMtjyMM74kGMs/IHU98rFLjLNgFB1VOIU= github.com/ortelius/scec-commons v0.1.32/go.mod h1:81QxQJo2TTVAMexjeSkV0SWpNFWUAhxGGJxC0+96Yt8= +github.com/ortelius/scec-commons v0.1.33 h1:mDwJN6apFjm2S/zchwQ8GUTU0FuIStvjpGT5oll+sKQ= +github.com/ortelius/scec-commons v0.1.33/go.mod h1:aJT8PaDyYCOMR+3hOtod5/SzfcMqbaVuozcH7DZ4wkQ= github.com/package-url/packageurl-go v0.1.3 h1:4juMED3hHiz0set3Vq3KeQ75KD1avthoXLtmE3I0PLs= github.com/package-url/packageurl-go v0.1.3/go.mod h1:nKAWB8E6uk1MHqiS/lQb9pYBGH2+mdJ2PJc2s50dQY0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= diff --git a/main.go b/main.go index 2eba437..508d226 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,7 @@ import ( ) var logger = database.InitLogger() -var dbconn = database.InitializeDB("sbom") +var dbconn = database.InitializeDatabase() var licensesMap = make(map[string]License) // License represents the structure of each license in the JSON data