add isPrimary to score docs

This commit is contained in:
zkldi
2021-05-03 00:23:15 +01:00
parent 5bbcfe9ec1
commit 262ea8c7e7
@@ -15,6 +15,7 @@ export async function CalculateRatings(
game,
playtype,
userID,
isPrimary: true,
},
{
sort: {
@@ -28,6 +29,7 @@ export async function CalculateRatings(
game,
playtype,
userID,
isPrimary: true,
},
{
sort: {
@@ -52,6 +54,7 @@ function LazySumAll(key: CustomCalcNames) {
game: game,
playtype: playtype,
userID: userID,
isPrimary: true,
[`calculatedData.gameSpecific.${key}`]: { $gt: 0 },
});
@@ -68,6 +71,7 @@ function LazyCalcN(key: CustomCalcNames, n: integer, returnMean?: boolean) {
game: game,
playtype: playtype,
userID: userID,
isPrimary: true,
[`calculatedData.gameSpecific.${key}`]: { $gt: 0 },
},
{