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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

Fix prettier workflow (#145)

Co-authored-by: Sainan <Sainan@users.noreply.github.com>

d402cd8c
Sainan <sainan@calamity.gg>
提交于

代码差异

3 个文件 +6 -7
Modified .github/workflows/prettier.yml +4 -4
@@ -1,10 +1,10 @@
1 1 name: Prettier
2 on:
3 pull_request:
4 branches: [main]
2 on: [push]
5 3 jobs:
6 4 format:
7 5 runs-on: ubuntu-latest
6 permissions:
7 contents: write
8 8 steps:
9 9 - name: Checkout
10 10 uses: actions/checkout@v4.1.2
@@ -13,7 +13,7 @@ jobs:
13 13 - name: Setup Node.js environment
14 14 uses: actions/setup-node@v4.0.2
15 15 with:
16 node-version: "18.x"
16 node-version: "20.x"
17 17 - run: npm ci
18 18 - run: npm run prettier
19 19 - name: Commit changes
Modified src/controllers/api/genericUpdateController.ts +1 -1
@@ -6,7 +6,7 @@ import { getJSONfromString } from "@/src/helpers/stringHelpers";
6 6 const genericUpdateController: RequestHandler = async (request, response) => {
7 7 const accountId = request.query.accountId as string;
8 8 const update = getJSONfromString(request.body.toString());
9 response.json(await updateGeneric(update, accountId));
9 response.json(await updateGeneric(update, accountId));
10 10 };
11 11
12 12 export { genericUpdateController };
Modified static/fixed_responses/aggregateSessions.json +1 -2
@@ -1,4 +1,3 @@
1 1 {
2 "Results": [
3 ]
2 "Results": []
4 3 }