@xmobitea/gn-server 2.4.1 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15528,22 +15528,23 @@ class GetBackupStatisticsLeaderboardVersionRequestHandler extends RequestHandler
|
|
|
15528
15528
|
}
|
|
15529
15529
|
operationResponse = new OperationResponse_1.OperationResponse(operationRequest.getOperationCode(), operationRequest.getRequestId(), operationRequest.isEncrypted());
|
|
15530
15530
|
operationResponse.setReturnCode(ReturnCode_1.ReturnCode.Ok);
|
|
15531
|
+
let type = request.type;
|
|
15531
15532
|
let backupStatisticsLeaderboardCollection;
|
|
15532
|
-
if (
|
|
15533
|
+
if (type == OwnerType_1.OwnerType.MasterPlayer) {
|
|
15533
15534
|
backupStatisticsLeaderboardCollection = this.gnServer.getDatabase().systemCollection("MasterPlayer.StatisticsBackup");
|
|
15534
15535
|
}
|
|
15535
15536
|
else {
|
|
15536
15537
|
let gameId = request.gameId;
|
|
15537
|
-
if (
|
|
15538
|
+
if (type == OwnerType_1.OwnerType.GamePlayer) {
|
|
15538
15539
|
backupStatisticsLeaderboardCollection = this.gnServer.getDatabase().systemGameCollection("GamePlayer.StatisticsBackup", gameId);
|
|
15539
15540
|
}
|
|
15540
|
-
else if (
|
|
15541
|
+
else if (type == OwnerType_1.OwnerType.CharacterPlayer) {
|
|
15541
15542
|
backupStatisticsLeaderboardCollection = this.gnServer.getDatabase().systemGameCollection("CharacterPlayer.StatisticsBackup", gameId);
|
|
15542
15543
|
}
|
|
15543
|
-
else if (
|
|
15544
|
+
else if (type == OwnerType_1.OwnerType.Inventory) {
|
|
15544
15545
|
backupStatisticsLeaderboardCollection = this.gnServer.getDatabase().systemGameCollection("Inventory.StatisticsBackup", gameId);
|
|
15545
15546
|
}
|
|
15546
|
-
else if (
|
|
15547
|
+
else if (type == OwnerType_1.OwnerType.Group) {
|
|
15547
15548
|
backupStatisticsLeaderboardCollection = this.gnServer.getDatabase().systemGameCollection("Group.StatisticsBackup", gameId);
|
|
15548
15549
|
}
|
|
15549
15550
|
else {
|
|
@@ -15551,9 +15552,8 @@ class GetBackupStatisticsLeaderboardVersionRequestHandler extends RequestHandler
|
|
|
15551
15552
|
return operationResponse;
|
|
15552
15553
|
}
|
|
15553
15554
|
}
|
|
15554
|
-
let type = request.type;
|
|
15555
15555
|
let key = request.key;
|
|
15556
|
-
let results = backupStatisticsLeaderboardCollection.find({
|
|
15556
|
+
let results = backupStatisticsLeaderboardCollection.find({ key: key }, {
|
|
15557
15557
|
projection: {
|
|
15558
15558
|
version: true,
|
|
15559
15559
|
log: true,
|