aboutsummaryrefslogtreecommitdiff
path: root/src/database.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.ts')
-rw-r--r--src/database.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/database.ts b/src/database.ts
index 91f4116..a3df3a2 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -212,8 +212,10 @@ function getMemberLeaderboardAttributes(member: CleanMember): StringNumber {
if (member.lastSave)
data.last_save = member.lastSave
- if (member.coopInvitation && member.coopInvitation.acceptedTimestamp && member.coopInvitation?.invitedBy?.uuid !== member.uuid)
+ if (member.coopInvitation && member.coopInvitation.acceptedTimestamp && member.coopInvitation?.invitedBy?.uuid !== member.uuid) {
data.fastest_coop_join = member.coopInvitation.acceptedTimestamp - member.coopInvitation.invitedTimestamp
+ data.slowest_coop_join = member.coopInvitation.acceptedTimestamp - member.coopInvitation.invitedTimestamp
+ }
return data
}
@@ -305,7 +307,8 @@ export async function fetchAllMemberLeaderboardAttributes(): Promise<string[]> {
'visited_zones',
'leaderboards_count',
'top_1_leaderboards_count',
- 'fastest_coop_join'
+ 'fastest_coop_join',
+ 'slowest_coop_join'
]
}