aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/election.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners/skyblock/election.ts')
-rw-r--r--src/cleaners/skyblock/election.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/election.ts b/src/cleaners/skyblock/election.ts
index 127fe96..a773f4a 100644
--- a/src/cleaners/skyblock/election.ts
+++ b/src/cleaners/skyblock/election.ts
@@ -15,7 +15,7 @@ export interface Candidate {
}
export interface ElectionData {
- last_updated: number
+ lastUpdated: number
previous: {
year: number
winner: string
@@ -42,7 +42,7 @@ function cleanCandidate(data: any, index: number): Candidate {
export function cleanElectionResponse(data: any): ElectionData {
const previousCandidates = data.mayor.election.candidates.map(cleanCandidate)
return {
- last_updated: data.lastUpdated / 1000,
+ lastUpdated: data.lastUpdated,
previous: {
year: data.mayor.election.year,
winner: data.mayor.name,