Skip to content

Commit

Permalink
try catch views
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesbrandenburger committed Jan 19, 2024
1 parent 5c792e4 commit f895a2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/heatmap-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const polygonCollection = database.collection("polygon");
const heatRegionStateCollection = database.collection("heatRegionState");

// create a view that joins the heatRegion and polygon collections
await database.command({ drop: "heatRegionStateWithPolygonView" });
try { await database.command({ drop: "heatRegionStateWithPolygonView" }); } catch (e) { }
// polygon: {polygonname: string, polygon: []}
// heatRegionWithPolygonView: { timestamp: string, heatRegions: [{ polygonname: string, density: number (0-1), count: number, polygon: [] }] }
await database.command({
Expand Down
2 changes: 1 addition & 1 deletion services/heatmap-service/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.1
v1.0.2
2 changes: 1 addition & 1 deletion services/pin-service/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const polygonCollection = database.collection("polygon");
const heatRegionCollection = database.collection("heatRegion");

// create a view that joins the pin and polygon collections
await database.command({ drop: "pinWithPolygonView" });
try { await database.command({ drop: "pinWithPolygonView" }); } catch (e) { }
await database.command({
create: "pinWithPolygonView",
viewOn: "pin",
Expand Down
2 changes: 1 addition & 1 deletion services/pin-service/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.3
v1.0.4

0 comments on commit f895a2a

Please sign in to comment.