Enable writing of PIS Metadata

This commit is contained in:
Fred Boniface
2024-11-22 21:38:53 +00:00
parent 977ff77d50
commit 2ef228a192
4 changed files with 8 additions and 4 deletions

View File

@@ -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))
}
}

View File

@@ -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
}