aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/farmingContents.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-30 18:08:12 +0000
committermat <github@matdoes.dev>2022-03-30 18:08:12 +0000
commit0646d0904d92e88358fbeb53fd15bd59f03d461a (patch)
treef6c4fb0c7c5dde4aca5173346c051805ea07fb5f /src/cleaners/skyblock/farmingContents.ts
parent458968d7ffaedb49b7527cc367028167dfbeaa0c (diff)
downloadskyblock-api-0646d0904d92e88358fbeb53fd15bd59f03d461a.tar.gz
skyblock-api-0646d0904d92e88358fbeb53fd15bd59f03d461a.tar.bz2
skyblock-api-0646d0904d92e88358fbeb53fd15bd59f03d461a.zip
lowercase item name in farming contest
Diffstat (limited to 'src/cleaners/skyblock/farmingContents.ts')
-rw-r--r--src/cleaners/skyblock/farmingContents.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/farmingContents.ts b/src/cleaners/skyblock/farmingContents.ts
index 9b34ba2..e6bb989 100644
--- a/src/cleaners/skyblock/farmingContents.ts
+++ b/src/cleaners/skyblock/farmingContents.ts
@@ -35,7 +35,7 @@ export function cleanFarmingContests(data: typedHypixelApi.SkyBlockProfileMember
const [month, day] = monthDay.split('_')
const contestByDateKey = `${year}:${month}:${day}`
const cropData: PlayerFarmingContestStats['crops'][number] = {
- item,
+ item: item.toLowerCase(),
amount: contestData.collected,
// the api returns the position 0-indexed, so we add 1
position: contestData.claimed_position ? contestData.claimed_position + 1 : null,