Skip to content
This repository was archived by the owner on Aug 3, 2021. It is now read-only.

Commit 5e6dc0d

Browse files
committed
added &approved=true at initial cabinet loading
1 parent 48ac49f commit 5e6dc0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Map.vue

+4-2
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,9 @@ export default {
314314
// POLYGON LOADING END -- LOAD EVERYTHING ELSE BUT INVISIBLE (NOTE: This part here is what causing the initial lag spike because there's just too much data. Working on it.)
315315
const initialize = async (page) => {
316316
const results = await axios
317-
.get(`https://api.fttx.gr/api/v1/cabinets?limit=1000&page=${page}`) // must be &approved=true
317+
.get(
318+
`https://api.fttx.gr/api/v1/cabinets?limit=1000&page=${page}&approved=true`
319+
)
318320
.then((r) => r);
319321
const cabinets = results.data.data.filter((d) => d.type !== "DSLAM");
320322
this.numberOfCabinets += cabinets.length;
@@ -363,7 +365,7 @@ export default {
363365
} else {
364366
let c = await axios
365367
.get(
366-
`https://api.fttx.gr/api/v1/cabinets?isp=${format[cab]}&limit=0`
368+
`https://api.fttx.gr/api/v1/cabinets?isp=${format[cab]}&limit=0&approved=true`
367369
)
368370
.then((r) => r);
369371

0 commit comments

Comments
 (0)