From 6eeb151d1ece4da0095a24688aa3d17e3202df70 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 26 May 2021 17:32:10 +0200 Subject: [PATCH] Use collectable counts from ffxivcollect --- create-card.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create-card.js b/create-card.js index 860ad45..030c9ac 100644 --- a/create-card.js +++ b/create-card.js @@ -88,15 +88,15 @@ class CardCreator { } async countMountsMinions() { - var response = await fetch(`https://xivapi.com/Companion`); + var response = await fetch(`https://ffxivcollect.com/api/minions/`); var data = await response.json(); - this.countMinion = data.Pagination.ResultsTotal; + this.countMinion = data.count; - var response = await fetch(`https://xivapi.com/Mount`); + var response = await fetch(`https://ffxivcollect.com/api/mounts/`); var data = await response.json(); - this.countMount = data.Pagination.ResultsTotal; + this.countMount = data.count; console.log(`Refreshed counts: ${this.countMinion} - ${this.countMount}`); }