fix: handle fake jobs without syndicateMissionId #2982

Merged
Sainan merged 2 commits from AMelonInsideLemon/SpaceNinjaServer:fix-fake-jobs into main 2025-11-03 23:56:33 -08:00

Closes #2970

Closes #2970
AMelonInsideLemon added 1 commit 2025-11-02 11:35:21 -08:00
fix: handle fake jobs without syndicateMissionId
All checks were successful
Build / build (pull_request) Successful in 1m56s
65f6c7a439
Re #2970
Sainan reviewed 2025-11-02 11:52:00 -08:00
@@ -1521,0 +1543,4 @@
{ endings: ["Jobs/NewbieJob"], amount: 200, tag: "CetusSyndicate" }
];
if (specialCase.some(rule => rule.endings.some(e => jobType.endsWith(e)))) {
const specialCaseReward = specialCase.find(
Owner

specialCase.find after specialCase.some seems wasteful as you're linearlly iterating over the array twice.

`specialCase.find` after `specialCase.some` seems wasteful as you're linearlly iterating over the array twice.
AMelonInsideLemon marked this conversation as resolved
AMelonInsideLemon added 1 commit 2025-11-02 13:05:55 -08:00
Update missionInventoryUpdateService.ts
All checks were successful
Build / build (pull_request) Successful in 59s
69d816e3ad
Sainan approved these changes 2025-11-02 23:25:09 -08:00
Sainan merged commit 2264ae176b into main 2025-11-03 23:56:33 -08:00
Sainan deleted branch fix-fake-jobs 2025-11-03 23:56:37 -08:00
Sign in to join this conversation.