返回提交历史
Modified
src/controllers/api/hubBlessingController.ts
+2
-1
XFEstudio/XFESpaceNinjaServer
fix: being able to give infinite blessings when not leaving relay (#3162)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3162 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
cb8098d5
代码差异
1 个文件
+2
-1
@@ -6,6 +6,7 @@ import { getRandomInt } from "../../services/rngService.ts";
6
6
import type { RequestHandler } from "express";
7
7
import { ExportBoosters } from "warframe-public-export-plus";
8
8
import type { IOid } from "../../types/commonTypes.ts";
9
import { toMongoDate } from "../../helpers/inventoryHelpers.ts";
9
10
10
11
export const hubBlessingController: RequestHandler = async (req, res) => {
11
12
const accountId = await getAccountIdForRequest(req);
@@ -24,7 +25,7 @@ export const hubBlessingController: RequestHandler = async (req, res) => {
24
25
}
25
26
26
27
res.json({
27
BlessingCooldown: inventory.BlessingCooldown,
28
BlessingCooldown: toMongoDate(inventory.BlessingCooldown),
28
29
SendTime: Math.trunc(Date.now() / 1000).toString(),
29
30
Expiry: Math.trunc(Date.now() / 1000 + 3 * 3600).toString(), // added in 38.6.0
30
31
Token: token