From c1f5a2b4649b8f3f0847244c8bad4bc0ac0b5de3 Mon Sep 17 00:00:00 2001 From: OrdisPrime Date: Fri, 7 Jun 2024 14:02:00 +0000 Subject: [PATCH] Apply prettier changes --- .../api/queueDojoComponentDestructionController.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 +};