aboutsummaryrefslogtreecommitdiff
path: root/build/hypixel.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/hypixel.js')
-rw-r--r--build/hypixel.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/build/hypixel.js b/build/hypixel.js
index 97e24b0..17d7355 100644
--- a/build/hypixel.js
+++ b/build/hypixel.js
@@ -156,7 +156,7 @@ async function fetchMemberProfileUncached(playerUuid, profileUuid) {
args: { profile: profileUuid }
}, null, { mainMemberUuid: playerUuid });
for (const member of profile.members)
- database_1.updateDatabaseMember(member);
+ database_1.updateDatabaseMember(member, profile);
return profile;
}
exports.fetchMemberProfileUncached = fetchMemberProfileUncached;
@@ -170,9 +170,11 @@ async function fetchMemberProfilesUncached(playerUuid) {
// only the inventories for the main player are generated, this is for optimization purposes
mainMemberUuid: playerUuid
});
- for (const profile of profiles)
- for (const member of profile.members)
- database_1.updateDatabaseMember(member);
+ for (const profile of profiles) {
+ for (const member of profile.members) {
+ database_1.updateDatabaseMember(member, profile);
+ }
+ }
return profiles;
}
exports.fetchMemberProfilesUncached = fetchMemberProfilesUncached;