返回提交历史
Modified
src/controllers/api/queueDojoComponentDestructionController.ts
+5
-2
XFEstudio/SpaceNinjaServer
Apply prettier changes
c1f5a2b4
代码差异
1 个文件
+5
-2
@@ -5,9 +5,12 @@ import { RequestHandler } from "express";
5
5
export const queueDojoComponentDestructionController: RequestHandler = async (req, res) => {
6
6
const guild = await getGuildForRequest(req);
7
7
const componentId = req.query.componentId as string;
8
guild.DojoComponents!.splice(guild.DojoComponents!.findIndex((x) => x._id.toString() === componentId), 1);
8
guild.DojoComponents!.splice(
9
guild.DojoComponents!.findIndex(x => x._id.toString() === componentId),
10
1
11
);
9
12
await guild.save();
10
13
res.json({
11
14
DojoRequestStatus: 1
12
15
});
13
};
16
};