mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 16:28:17 +03:00
add isPrimary to score docs
This commit is contained in:
@@ -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 },
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user