diff --git a/src/controllers/api/nemesisController.ts b/src/controllers/api/nemesisController.ts index c501bc7f..724d8c8e 100644 --- a/src/controllers/api/nemesisController.ts +++ b/src/controllers/api/nemesisController.ts @@ -17,8 +17,8 @@ export const nemesisController: RequestHandler = async (req, res) => { for (const [key, value] of Object.entries(ExportRegions)) { if ( value.systemIndex == 2 && // earth - value.nodeType != 3 && // hub - value.nodeType != 7 && // junction + value.nodeType != 3 && // not hub + value.nodeType != 7 && // not junction value.missionIndex && // must have a mission type and not assassination value.missionIndex != 28 && // not open world value.missionIndex != 32 && // not railjack @@ -75,7 +75,7 @@ export const nemesisController: RequestHandler = async (req, res) => { HenchmenKilled: 0, SecondInCommand: body.target.SecondInCommand }; - inventory.NemesisAbandonedRewards = []; + inventory.NemesisAbandonedRewards = []; // unclear if we need to do this since the client also submits this with missionInventoryUpdate await inventory.save(); res.json({ diff --git a/src/index.ts b/src/index.ts index 12da1e45..59ce798c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,6 +11,7 @@ import { registerLogFileCreationListener } from "@/src/utils/logger"; import mongoose from "mongoose"; // Patch JSON.stringify to work flawlessly with Bigints. Yeah, it's not pretty. +// TODO: Might wanna use json-with-bigint if/when possible. { // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any (BigInt.prototype as any).toJSON = function (): string {