Fix Join count

This commit is contained in:
Natsumi
2021-10-01 10:23:16 +13:00
parent 76af949f01
commit 752c675611
2 changed files with 2 additions and 1 deletions

View File

@@ -1003,6 +1003,7 @@ speechSynthesis.getVoices();
allowAvatarCopying: json.allowAvatarCopying,
userIcon: json.userIcon,
fallbackAvatar: json.fallbackAvatar,
profilePicOverride: json.profilePicOverride,
isFriend: false,
location: $app.lastLocation.location
});

View File

@@ -787,7 +787,7 @@ class Database {
userId
};
}
}, `SELECT COUNT(*) FROM gamelog_join_leave WHERE user_id = '${userId}' OR display_name = '${displayName}'`);
}, `SELECT COUNT(*) FROM gamelog_join_leave WHERE (type = 'OnPlayerJoined') AND (user_id = '${userId}' OR display_name = '${displayName}')`);
return ref;
}
}