Skip to content

Commit

Permalink
fixed linting and build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yooooomi committed Nov 1, 2023
1 parent 857dffc commit 4769477
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "DISABLE_ESLINT_PLUGIN=true react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint src/ --ext .tsx,.ts"
Expand All @@ -52,7 +52,6 @@
"@typescript-eslint/parser": "6.9.1",
"eslint": "8.52.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.29.0",
Expand Down
5 changes: 2 additions & 3 deletions server/src/routes/importer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ router.post(
const { user } = req as LoggedRequest;
const { existingStateId } = req.body as TypedPayload<typeof retrySchema>;

const importState = await getImporterState<ImporterState['type']>(
existingStateId,
);
const importState =
await getImporterState<ImporterState['type']>(existingStateId);
if (!importState || importState.user.toString() !== user._id.toString()) {
return res.status(404).end();
}
Expand Down

0 comments on commit 4769477

Please sign in to comment.