chore: remove log-in expired handler in getCreditsController
This commit is contained in:
		
							parent
							
								
									e77f8b0e51
								
							
						
					
					
						commit
						76d40964db
					
				@ -4,13 +4,7 @@ import { getAccountIdForRequest } from "@/src/services/loginService";
 | 
			
		||||
import { getInventory } from "@/src/services/inventoryService";
 | 
			
		||||
 | 
			
		||||
export const getCreditsController: RequestHandler = async (req, res) => {
 | 
			
		||||
    let accountId;
 | 
			
		||||
    try {
 | 
			
		||||
        accountId = await getAccountIdForRequest(req);
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
        res.status(400).send("Log-in expired");
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
    const accountId = await getAccountIdForRequest(req);
 | 
			
		||||
 | 
			
		||||
    const inventory = await getInventory(accountId);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user