返回提交历史
Modified
src/constants/gameToBuildVersion.ts
+1
-0
Modified
src/controllers/api/trainingResultController.ts
+4
-2
XFEstudio/SpaceNinjaServer
chore: add minBuildVersion to mastery slate inbox message (#4029)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4029 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
0436d745
代码差异
2 个文件
+5
-2
@@ -26,6 +26,7 @@ const gameToBuildVersion = {
26
26
"30.0.0": "2021.04.13.19.58",
27
27
"29.10.0": "2021.03.19.10.30",
28
28
"29.6.8": "2021.01.25.08.49",
29
"29.5.0": "2020.11.19.17.52",
29
30
"29.3.1": "2020.11.04.18.58",
30
31
"29.0.0": "2018.11.08.14.45",
31
32
"28.3.0": "2020.08.12.19.57",
@@ -1,4 +1,4 @@
1
import { getAccountForRequest, type TAccountDocument } from "../../services/loginService.ts";
1
import { buildVersionToInt, getAccountForRequest, type TAccountDocument } from "../../services/loginService.ts";
2
2
import { getJSONfromString } from "../../helpers/stringHelpers.ts";
3
3
import { getInventory } from "../../services/inventoryService.ts";
4
4
import type { IMongoDateWithLegacySupport } from "../../types/commonTypes.ts";
@@ -7,6 +7,7 @@ import { unixTimesInMs } from "../../constants/timeConstants.ts";
7
7
import type { IInventoryChanges } from "../../types/purchaseTypes.ts";
8
8
import { createMessage } from "../../services/inboxService.ts";
9
9
import { toMongoDate2 } from "../../helpers/inventoryHelpers.ts";
10
import gameToBuildVersion from "../../constants/gameToBuildVersion.ts";
10
11
11
12
interface ITrainingResultsRequest {
12
13
numLevelsGained: number;
@@ -63,7 +64,8 @@ const handleTrainingProgress = async (
63
64
],
64
65
sub: "/Lotus/Language/Inbox/MasteryRewardTitle",
65
66
icon: "/Lotus/Interface/Icons/Npcs/Lotus_d.png",
66
highPriority: true
67
highPriority: true,
68
minBuildVersion: buildVersionToInt(gameToBuildVersion["29.5.0"])
67
69
}
68
70
]);
69
71
}