From 07451dcef0bda744802b30bf7b1ec27d95d19524 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 2 Feb 2025 05:16:43 -0800 Subject: [PATCH] fix: inventory not being requested when visiting navigation (#882) Reviewed-on: http://209.141.38.3/OpenWF/SpaceNinjaServer/pulls/882 Co-authored-by: Sainan Co-committed-by: Sainan --- src/controllers/api/inventoryController.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 08b9386e..2cd5f6bd 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -16,8 +16,6 @@ import { } from "warframe-public-export-plus"; import { handleSubsumeCompletion } from "./infestedFoundryController"; import { allDailyAffiliationKeys } from "@/src/services/inventoryService"; -import { toOid } from "@/src/helpers/inventoryHelpers"; -import { Types } from "mongoose"; export const inventoryController: RequestHandler = async (request, response) => { const account = await getAccountForRequest(request); @@ -257,7 +255,8 @@ export const getInventoryResponse = async ( // This determines if the "void fissures" tab is shown in navigation. inventoryResponse.HasOwnedVoidProjectionsPreviously = true; - inventoryResponse.LastInventorySync = toOid(new Types.ObjectId()); + // Omitting this field so opening the navigation resyncs the inventory which is more desirable for typical usage. + //inventoryResponse.LastInventorySync = toOid(new Types.ObjectId()); return inventoryResponse; };