details
All checks were successful
Build / build (18) (push) Successful in 40s
Build / build (22) (push) Successful in 1m3s
Build / build (20) (push) Successful in 1m10s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m4s
Build / build (22) (pull_request) Successful in 1m12s

This commit is contained in:
Sainan 2025-03-17 21:18:20 +01:00
parent 846906d390
commit b32de0711b
2 changed files with 4 additions and 3 deletions

View File

@ -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({

View File

@ -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 {