This commit is contained in:
parent
977ff77d50
commit
2ef228a192
@ -17,7 +17,7 @@ var MongoClient (*mongo.Client)
|
||||
|
||||
// Builds the DB URI based on the loaded configuration parameters
|
||||
func getDbUri(cfg *helpers.Configuration) string {
|
||||
var uri = "mongodb://" + cfg.DbUser + ":" + cfg.DbPass + "@" + cfg.DbHost + ":" + cfg.DbPort + "?authSource=owlboard"
|
||||
var uri = "mongodb://" + cfg.DbUser + ":" + cfg.DbPass + "@" + cfg.DbHost + ":" + cfg.DbPort + "/?authSource=owlboard"
|
||||
return uri
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
)
|
||||
|
||||
// Version Constants
|
||||
const versionNum string = "2024.11.5"
|
||||
const versionNum string = "2024.11.6"
|
||||
const versionSuffix string = ""
|
||||
const Version string = versionNum + versionSuffix
|
||||
|
||||
|
@ -67,4 +67,9 @@ func Check() {
|
||||
if err != nil {
|
||||
log.Error("Error updating PIS Data", zap.Error(err))
|
||||
}
|
||||
|
||||
err = dbAccess.PutPisMetadata(apiResp.Name)
|
||||
if err != nil {
|
||||
log.Error("Error updating PIS Metadata", zap.Error(err))
|
||||
}
|
||||
}
|
||||
|
@ -54,8 +54,7 @@ func runUpdate(tarballUrl string) error {
|
||||
}
|
||||
log.Info("Loaded PIS Files to Slice")
|
||||
|
||||
// Temporarily use "pis_testing" collection to ensure all works as expected
|
||||
err = dbAccess.DropCollection("pis_testing")
|
||||
err = dbAccess.DropCollection(dbAccess.PisCollection)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user