XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

Apply prettier changes

c1f5a2b4
OrdisPrime <OrdisPrime@users.noreply.github.com>
提交于

代码差异

1 个文件 +5 -2
Modified src/controllers/api/queueDojoComponentDestructionController.ts +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 };