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
				
			
		
		
	
	
				
					
				
			
		
			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:
		
							parent
							
								
									846906d390
								
							
						
					
					
						commit
						b32de0711b
					
				@ -17,8 +17,8 @@ export const nemesisController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
        for (const [key, value] of Object.entries(ExportRegions)) {
 | 
					        for (const [key, value] of Object.entries(ExportRegions)) {
 | 
				
			||||||
            if (
 | 
					            if (
 | 
				
			||||||
                value.systemIndex == 2 && // earth
 | 
					                value.systemIndex == 2 && // earth
 | 
				
			||||||
                value.nodeType != 3 && // hub
 | 
					                value.nodeType != 3 && // not hub
 | 
				
			||||||
                value.nodeType != 7 && // junction
 | 
					                value.nodeType != 7 && // not junction
 | 
				
			||||||
                value.missionIndex && // must have a mission type and not assassination
 | 
					                value.missionIndex && // must have a mission type and not assassination
 | 
				
			||||||
                value.missionIndex != 28 && // not open world
 | 
					                value.missionIndex != 28 && // not open world
 | 
				
			||||||
                value.missionIndex != 32 && // not railjack
 | 
					                value.missionIndex != 32 && // not railjack
 | 
				
			||||||
@ -75,7 +75,7 @@ export const nemesisController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
            HenchmenKilled: 0,
 | 
					            HenchmenKilled: 0,
 | 
				
			||||||
            SecondInCommand: body.target.SecondInCommand
 | 
					            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();
 | 
					        await inventory.save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        res.json({
 | 
					        res.json({
 | 
				
			||||||
 | 
				
			|||||||
@ -11,6 +11,7 @@ import { registerLogFileCreationListener } from "@/src/utils/logger";
 | 
				
			|||||||
import mongoose from "mongoose";
 | 
					import mongoose from "mongoose";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Patch JSON.stringify to work flawlessly with Bigints. Yeah, it's not pretty.
 | 
					// 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
 | 
					    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
 | 
				
			||||||
    (BigInt.prototype as any).toJSON = function (): string {
 | 
					    (BigInt.prototype as any).toJSON = function (): string {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user