Skip to content

Commit

Permalink
refactor: fix type issues in API
Browse files Browse the repository at this point in the history
  • Loading branch information
iluxonchik committed Nov 27, 2024
1 parent e47d8fa commit d38a79b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/routes/api.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import express from 'express';
import express, { Request, Response } from 'express';
import { ProposalLogic } from '../logic/ProposalLogic';
import { EndUserError } from '../Errors';
import logger from '../logging';

const router = express.Router();

router.get('/projects/:id', async (req, res) => {
router.get('/projects/:id', async (req: Request, res: Response) => {
try {
const projectId = parseInt(req.params.id);
if (isNaN(projectId)) {
Expand Down

0 comments on commit d38a79b

Please sign in to comment.