Enable writing of PIS Metadata
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user