aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-05-17 18:46:29 +0000
committermat <github@matdoes.dev>2022-05-17 18:46:29 +0000
commit4191b814ba344838f09fbd2f499e88ac31bdc4c7 (patch)
tree5205af3be98eb7729b5f6c7bc02bc565650bc74c
parente06358b5b930c90e69dc4a6bddaa2b7f1be640b4 (diff)
downloadskyblock-api-4191b814ba344838f09fbd2f499e88ac31bdc4c7.tar.gz
skyblock-api-4191b814ba344838f09fbd2f499e88ac31bdc4c7.tar.bz2
skyblock-api-4191b814ba344838f09fbd2f499e88ac31bdc4c7.zip
remove some debug console.logs
-rw-r--r--src/cleaners/skyblock/auctions.ts1
-rw-r--r--src/hypixelApi.ts1
-rw-r--r--src/index.ts2
3 files changed, 0 insertions, 4 deletions
diff --git a/src/cleaners/skyblock/auctions.ts b/src/cleaners/skyblock/auctions.ts
index 28e1958..7812ce6 100644
--- a/src/cleaners/skyblock/auctions.ts
+++ b/src/cleaners/skyblock/auctions.ts
@@ -15,7 +15,6 @@ export interface Auction {
}
export async function cleanAuctions(data: typedHypixelApi.SkyBlockRequestAuctionResponse): Promise<Auction[]> {
- console.log(data)
const auctions: Auction[] = []
for (const auction of data.auctions) {
auctions.push({
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts
index 40a972a..d229bc1 100644
--- a/src/hypixelApi.ts
+++ b/src/hypixelApi.ts
@@ -104,7 +104,6 @@ export interface HypixelPlayerSocialMedia {
/** Send an HTTP request to the Hypixel API */
export let sendApiRequest = async<P extends keyof typedHypixelApi.Requests>(path: P, options: typedHypixelApi.Requests[P]['options']): Promise<typedHypixelApi.Requests[P]['response']['data']> => {
// Send a raw http request to api.hypixel.net, and return the parsed json
- console.log('requesting', path, options)
let response: typedHypixelApi.Requests[P]['response']
try {
response = await typedHypixelApi.request(
diff --git a/src/index.ts b/src/index.ts
index 9311fe6..f81190f 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -197,9 +197,7 @@ app.get('/auctionitems', async (req, res) => {
})
app.get('/auction/:uuid', async (req, res) => {
- console.log('fetching auction', req.params.uuid)
const auction = await fetchAuctionUncached(req.params.uuid)
- console.log('fetched auction', req.params.uuid)
try {
res
// .setHeader('Cache-Control', 'public, max-age=600')