返回提交历史
Modified
src/controllers/api/inventoryController.ts
+2
-3
XFEstudio/XFESpaceNinjaServer
fix: inventory not being requested when visiting navigation (#882)
Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/882 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>
07451dce
代码差异
1 个文件
+2
-3
@@ -16,8 +16,6 @@ import {
16
16
} from "warframe-public-export-plus";
17
17
import { handleSubsumeCompletion } from "./infestedFoundryController";
18
18
import { allDailyAffiliationKeys } from "@/src/services/inventoryService";
19
import { toOid } from "@/src/helpers/inventoryHelpers";
20
import { Types } from "mongoose";
21
19
22
20
export const inventoryController: RequestHandler = async (request, response) => {
23
21
const account = await getAccountForRequest(request);
@@ -257,7 +255,8 @@ export const getInventoryResponse = async (
257
255
// This determines if the "void fissures" tab is shown in navigation.
258
256
inventoryResponse.HasOwnedVoidProjectionsPreviously = true;
259
257
260
inventoryResponse.LastInventorySync = toOid(new Types.ObjectId());
258
// Omitting this field so opening the navigation resyncs the inventory which is more desirable for typical usage.
259
//inventoryResponse.LastInventorySync = toOid(new Types.ObjectId());
261
260
262
261
return inventoryResponse;
263
262
};