aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-06-01 16:08:13 -0500
committermat <github@matdoes.dev>2021-06-01 16:08:13 -0500
commit04d79fe41fae83eed8f17eda97e4e4827dc79e92 (patch)
tree1e468c23170414ec81d9ef14fac49aa998ff9e1f
parent55d5d936d7ccc2b78ea1de6f07e71f9e1e2c9b74 (diff)
downloadskyblock-api-04d79fe41fae83eed8f17eda97e4e4827dc79e92.tar.gz
skyblock-api-04d79fe41fae83eed8f17eda97e4e4827dc79e92.tar.bz2
skyblock-api-04d79fe41fae83eed8f17eda97e4e4827dc79e92.zip
temporarily disable fetchMemberLeaderboardSpots
-rw-r--r--build/index.js5
-rw-r--r--src/index.ts7
2 files changed, 8 insertions, 4 deletions
diff --git a/build/index.js b/build/index.js
index 5f88c7e..62c1f7e 100644
--- a/build/index.js
+++ b/build/index.js
@@ -88,7 +88,10 @@ app.get('/player/:user/:profile', async (req, res) => {
});
app.get('/player/:user/:profile/leaderboards', async (req, res) => {
try {
- res.json(await database_1.fetchMemberLeaderboardSpots(req.params.user, req.params.profile));
+ res.json({ ok: false });
+ // res.json(
+ // await fetchMemberLeaderboardSpots(req.params.user, req.params.profile)
+ // )
}
catch (err) {
console.error(err);
diff --git a/src/index.ts b/src/index.ts
index 389a1fe..d6859d4 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -79,9 +79,10 @@ app.get('/player/:user/:profile', async(req, res) => {
app.get('/player/:user/:profile/leaderboards', async(req, res) => {
try {
- res.json(
- await fetchMemberLeaderboardSpots(req.params.user, req.params.profile)
- )
+ res.json({ ok: false })
+ // res.json(
+ // await fetchMemberLeaderboardSpots(req.params.user, req.params.profile)
+ // )
} catch (err) {
console.error(err)
res.json({ ok: false })