forked from OpenWF/SpaceNinjaServer
		
	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";
 | 
					import { getInventory } from "@/src/services/inventoryService";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const getCreditsController: RequestHandler = async (req, res) => {
 | 
					export const getCreditsController: RequestHandler = async (req, res) => {
 | 
				
			||||||
    let accountId;
 | 
					    const accountId = await getAccountIdForRequest(req);
 | 
				
			||||||
    try {
 | 
					 | 
				
			||||||
        accountId = await getAccountIdForRequest(req);
 | 
					 | 
				
			||||||
    } catch (e) {
 | 
					 | 
				
			||||||
        res.status(400).send("Log-in expired");
 | 
					 | 
				
			||||||
        return;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const inventory = await getInventory(accountId);
 | 
					    const inventory = await getInventory(accountId);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user