forked from OpenWF/SpaceNinjaServer
		
	Apply prettier changes
This commit is contained in:
		
							parent
							
								
									a43237a8aa
								
							
						
					
					
						commit
						c1f5a2b464
					
				@ -5,7 +5,10 @@ import { RequestHandler } from "express";
 | 
				
			|||||||
export const queueDojoComponentDestructionController: RequestHandler = async (req, res) => {
 | 
					export const queueDojoComponentDestructionController: RequestHandler = async (req, res) => {
 | 
				
			||||||
    const guild = await getGuildForRequest(req);
 | 
					    const guild = await getGuildForRequest(req);
 | 
				
			||||||
    const componentId = req.query.componentId as string;
 | 
					    const componentId = req.query.componentId as string;
 | 
				
			||||||
    guild.DojoComponents!.splice(guild.DojoComponents!.findIndex((x) => x._id.toString() === componentId), 1);
 | 
					    guild.DojoComponents!.splice(
 | 
				
			||||||
 | 
					        guild.DojoComponents!.findIndex(x => x._id.toString() === componentId),
 | 
				
			||||||
 | 
					        1
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
    await guild.save();
 | 
					    await guild.save();
 | 
				
			||||||
    res.json({
 | 
					    res.json({
 | 
				
			||||||
        DojoRequestStatus: 1
 | 
					        DojoRequestStatus: 1
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user