From f85a3da50e14fbaeb98a3ddf1eb5bdb0d23137f0 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 22 Nov 2024 21:49:32 +0000 Subject: [PATCH] Fix TIPLOC/STANOX fetching code, fix logging for PIS metadata --- dbAccess/corpus.go | 4 ++-- dbAccess/pis.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dbAccess/corpus.go b/dbAccess/corpus.go index 967f012..1283b8a 100644 --- a/dbAccess/corpus.go +++ b/dbAccess/corpus.go @@ -106,7 +106,7 @@ func GetTiplocFromCrs(crs string) (tiploc string, err error) { }, } - coll := MongoClient.Database(DatabaseName).Collection(StationsCollection) + coll := MongoClient.Database(DatabaseName).Collection(CorpusCollection) cursor, err := coll.Aggregate(context.Background(), pipeline) if err != nil { return "", err @@ -144,7 +144,7 @@ func GetStanoxFromCrs(crs string) (stanox string, err error) { }, } - coll := MongoClient.Database(DatabaseName).Collection(StationsCollection) + coll := MongoClient.Database(DatabaseName).Collection(CorpusCollection) cursor, err := coll.Aggregate(context.Background(), pipeline) if err != nil { return "", err diff --git a/dbAccess/pis.go b/dbAccess/pis.go index bb81a52..9ddf2a1 100644 --- a/dbAccess/pis.go +++ b/dbAccess/pis.go @@ -47,7 +47,7 @@ func PutPisMetadata(version string) error { return err } - log.Info("New Stations Metadata written", zap.String("version", version)) + log.Info("New PIS Metadata written", zap.String("version", version)) return nil }