返回提交历史
Modified
src/controllers/api/clearDialogueHistoryController.ts
+2
-2
XFEstudio/XFESpaceNinjaServer
chore(noKimCooldowns): also disable digital grimoire's cooldown (#3711)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3711 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
be7ec3cf
代码差异
1 个文件
+2
-2
@@ -6,7 +6,7 @@ import { unixTimesInMs } from "../../constants/timeConstants.ts";
6
6
7
7
export const clearDialogueHistoryController: RequestHandler = async (req, res) => {
8
8
const accountId = await getAccountIdForRequest(req);
9
const inventory = await getInventory(accountId, "DialogueHistory");
9
const inventory = await getInventory(accountId, "DialogueHistory noKimCooldowns");
10
10
const request = JSON.parse(String(req.body)) as IClearDialogueRequest;
11
11
//logger.debug(`clearDialogueHistory:`, request);
12
12
if (inventory.DialogueHistory && inventory.DialogueHistory.Dialogues) {
@@ -26,7 +26,7 @@ export const clearDialogueHistoryController: RequestHandler = async (req, res) =
26
26
}) - 1
27
27
];
28
28
}
29
resetDate.Date = new Date(Date.now() + 28 * unixTimesInMs.day);
29
resetDate.Date = inventory.noKimCooldowns ? new Date() : new Date(Date.now() + 28 * unixTimesInMs.day);
30
30
resetDate.Resets += 1;
31
31
}
32
32