Fix prettier workflow #145

Merged
Sainan merged 2 commits from fix-action into main 2024-05-03 11:59:32 -07:00
3 changed files with 6 additions and 7 deletions

View File

@ -1,10 +1,10 @@
name: Prettier
on:
pull_request:
branches: [main]
on: [push]
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4.1.2
@ -13,7 +13,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version: "18.x"
node-version: "20.x"
- run: npm ci
- run: npm run prettier
- name: Commit changes

View File

@ -6,7 +6,7 @@ import { getJSONfromString } from "@/src/helpers/stringHelpers";
const genericUpdateController: RequestHandler = async (request, response) => {
const accountId = request.query.accountId as string;
const update = getJSONfromString(request.body.toString());
response.json(await updateGeneric(update, accountId));
response.json(await updateGeneric(update, accountId));
};
export { genericUpdateController };

View File

@ -1,4 +1,3 @@
{
"Results": [
]
"Results": []
}