diff --git a/src/controllers/api/queueDojoComponentDestructionController.ts b/src/controllers/api/queueDojoComponentDestructionController.ts index 23b9b25a..7f348b87 100644 --- a/src/controllers/api/queueDojoComponentDestructionController.ts +++ b/src/controllers/api/queueDojoComponentDestructionController.ts @@ -5,9 +5,12 @@ import { RequestHandler } from "express"; export const queueDojoComponentDestructionController: RequestHandler = async (req, res) => { const guild = await getGuildForRequest(req); 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(); res.json({ DojoRequestStatus: 1 }); -}; \ No newline at end of file +};