From 703e9007b017cd6c174314310e15a6ae504995a9 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 8 Sep 2025 20:43:02 -0700 Subject: [PATCH] fix: invasion reward message sender name (#2759) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2759 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- src/controllers/api/inventoryController.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 3e6e8bfa..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, @@ -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,