Temporarily deploy PIS data to testing collection
This commit is contained in:
@@ -53,7 +53,7 @@ func PutPisMetadata(version string) error {
|
||||
|
||||
// Puts complete PIS dataset to database
|
||||
func PutPisData(pis *[]database.PIS) (int64, error) {
|
||||
coll := MongoClient.Database(DatabaseName).Collection(PisCollection)
|
||||
coll := MongoClient.Database(DatabaseName).Collection("pis_testing")
|
||||
|
||||
var docs []interface{}
|
||||
for _, entry := range *pis {
|
||||
@@ -69,7 +69,7 @@ func PutPisData(pis *[]database.PIS) (int64, error) {
|
||||
}
|
||||
|
||||
func CreatePisIndeces() error {
|
||||
coll := MongoClient.Database(DatabaseName).Collection(PisCollection)
|
||||
coll := MongoClient.Database(DatabaseName).Collection("pis_testing")
|
||||
|
||||
crsIndex := mongo.IndexModel{
|
||||
Keys: bson.D{{"stops", 1}},
|
||||
|
||||
Reference in New Issue
Block a user