forked from OpenWF/SpaceNinjaServer
		
	chore: fix typo
This commit is contained in:
		
							parent
							
								
									c4b2248df5
								
							
						
					
					
						commit
						8eefd67d79
					
				@ -10,7 +10,7 @@ export const toMongoDate = (date: Date): IMongoDate => {
 | 
				
			|||||||
    return { $date: { $numberLong: date.getTime().toString() } };
 | 
					    return { $date: { $numberLong: date.getTime().toString() } };
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const fromMongoData = (date: IMongoDate): Date => {
 | 
					export const fromMongoDate = (date: IMongoDate): Date => {
 | 
				
			||||||
    return new Date(parseInt(date.$date.$numberLong));
 | 
					    return new Date(parseInt(date.$date.$numberLong));
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -69,7 +69,7 @@ import {
 | 
				
			|||||||
import { createShip } from "./shipService";
 | 
					import { createShip } from "./shipService";
 | 
				
			||||||
import {
 | 
					import {
 | 
				
			||||||
    catbrowDetails,
 | 
					    catbrowDetails,
 | 
				
			||||||
    fromMongoData,
 | 
					    fromMongoDate,
 | 
				
			||||||
    kubrowDetails,
 | 
					    kubrowDetails,
 | 
				
			||||||
    kubrowFurPatternsWeights,
 | 
					    kubrowFurPatternsWeights,
 | 
				
			||||||
    kubrowWeights,
 | 
					    kubrowWeights,
 | 
				
			||||||
@ -1506,7 +1506,7 @@ export const applyClientEquipmentUpdates = (
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (InfestationDate) {
 | 
					        if (InfestationDate) {
 | 
				
			||||||
            item.InfestationDate = fromMongoData(InfestationDate);
 | 
					            item.InfestationDate = fromMongoDate(InfestationDate);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user