userinfo: fix boosting badge math
This commit is contained in:
		
							parent
							
								
									111107eff2
								
							
						
					
					
						commit
						7d413d38ff
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -123,7 +123,7 @@ userinfo.callback = async function (msg, line) {
 | 
			
		|||
  }
 | 
			
		||||
  if (boosting) {
 | 
			
		||||
    let icon = Icons.badges.guild_booster_lvl1;
 | 
			
		||||
    const delta = Date.now() - Math.floor(boosting / 1000);
 | 
			
		||||
    const delta = Math.floor((Date.now() - boosting) / 1000);
 | 
			
		||||
    if (delta >= ONE_MONTH * 2) {
 | 
			
		||||
      icon = Icons.badges.guild_booster_lvl2;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue