This commit is contained in:
		
							parent
							
								
									7957dc1e24
								
							
						
					
					
						commit
						58ea73a116
					
				@ -25,7 +25,7 @@ export const setBoosterController: RequestHandler = async (req, res) => {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    const now = Math.floor(Date.now() / 1000);
 | 
					    const now = Math.floor(Date.now() / 1000);
 | 
				
			||||||
    for (const { ItemType, ExpiryDate } of requests) {
 | 
					    for (const { ItemType, ExpiryDate } of requests) {
 | 
				
			||||||
        if (ExpiryDate > now) {
 | 
					        if (ExpiryDate < now) {
 | 
				
			||||||
            // remove expired boosters
 | 
					            // remove expired boosters
 | 
				
			||||||
            const index = boosters.findIndex(item => item.ItemType === ItemType);
 | 
					            const index = boosters.findIndex(item => item.ItemType === ItemType);
 | 
				
			||||||
            if (index !== -1) {
 | 
					            if (index !== -1) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user