From 37beb0b8f54040cc21d3b75b0f9ff28a4aac9548 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 8 Sep 2025 07:13:44 +0200 Subject: [PATCH 1/2] fix: invasion reward message sender name --- src/controllers/api/inventoryController.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 3e6e8bfa..3bc0959d 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -220,7 +220,10 @@ export const inventoryController: RequestHandler = async (request, response) => } await createMessage(account._id, [ { - sndr: eFaction.find(x => x.tag == factionSidedWith)?.name ?? factionSidedWith, // TOVERIFY + sndr: + factionSidedWith == "FC_GRINEER" + ? "/Lotus/Language/Menu/GrineerInvasionLeader" + : "/Lotus/Language/Menu/CorpusInvasionLeader", msg: `/Lotus/Language/G1Quests/${factionSidedWith}_InvasionThankyouMessageBody`, sub: `/Lotus/Language/G1Quests/${factionSidedWith}_InvasionThankyouMessageSubject`, countedAtt: battlePay, -- 2.47.2 From 8b2ae78aa5b7f953ae1069158c555a5e72e8a81c Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 8 Sep 2025 07:16:04 +0200 Subject: [PATCH 2/2] remove unused import --- src/controllers/api/inventoryController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 3bc0959d..1af5c350 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -10,7 +10,7 @@ import { equipmentKeys } from "../../types/inventoryTypes/inventoryTypes.ts"; import type { IPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts"; import { ArtifactPolarity } from "../../types/inventoryTypes/commonInventoryTypes.ts"; import type { ICountedItem } from "warframe-public-export-plus"; -import { eFaction, ExportCustoms, ExportFlavour, ExportResources } from "warframe-public-export-plus"; +import { ExportCustoms, ExportFlavour, ExportResources } from "warframe-public-export-plus"; import { applyCheatsToInfestedFoundry, handleSubsumeCompletion } from "../../services/infestedFoundryService.ts"; import { addEmailItem, -- 2.47.2