diff --git a/deploy.sh b/deploy.sh index 75aad83..eeffdfa 100644 --- a/deploy.sh +++ b/deploy.sh @@ -10,7 +10,7 @@ gcloud secrets versions access latest --secret="$ENV_SECRET_NAME" > .env # Scrape, parse, and upload ./api-tools -scrape -mazevo -verbose -#./api-tools -parse -mazevo -verbose +./api-tools -parse -mazevo -verbose ./api-tools -scrape -astra -verbose -#./api-tools -parse -astra -verbose -#./api-tools -upload -events -verbose +./api-tools -parse -astra -verbose +./api-tools -upload -events -verbose diff --git a/uploader/eventsUploader.go b/uploader/eventsUploader.go index 00babaf..9d67830 100644 --- a/uploader/eventsUploader.go +++ b/uploader/eventsUploader.go @@ -18,7 +18,7 @@ import ( // Note that this uploader assumes that the collection names match the names of these files, which they should. // If the names of these collections ever change, the file names should be updated accordingly. -var eventsFilesToUpload [1]string = [1]string{"astra.json"} +var eventsFilesToUpload [2]string = [2]string{"astra.json", "mazevo.json"} func UploadEvents(inDir string) { @@ -51,6 +51,8 @@ func UploadEvents(inDir string) { switch path { case "astra.json": UploadData[schema.MultiBuildingEvents[schema.AstraEvent]](client, ctx, fptr, true) + case "mazevo.json": + UploadData[schema.MultiBuildingEvents[schema.MazevoEvent]](client, ctx, fptr, true) } } }