Skip to content

Commit a1dc770

Browse files
committed
these controllers didnt commit for some reason
1 parent a8f2727 commit a1dc770

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

src/backend/src/controllers/design-reviews.controllers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class DesignReviewsController {
4444

4545
static async getSingleDesignReview(req: Request, res: Response, next: NextFunction) {
4646
try {
47-
const drId: string = req.params.designReviewId;
47+
const drId = req.params.designReviewId as string;
4848

4949
const designReview = await DesignReviewsService.getSingleDesignReview(req.currentUser, drId, req.organization);
5050
res.status(200).json(designReview);

src/backend/src/controllers/teams.controllers.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ export default class TeamsController {
6363
try {
6464
const { newDescription } = req.body;
6565

66-
const team = await TeamsService.editDescription(req.currentUser, req.params.teamId, newDescription, req.organization);
66+
const team = await TeamsService.editDescription(
67+
req.currentUser,
68+
req.params.teamId as string,
69+
newDescription,
70+
req.organization
71+
);
6772
res.status(200).json(team);
6873
} catch (error: unknown) {
6974
next(error);
@@ -74,7 +79,7 @@ export default class TeamsController {
7479
try {
7580
const { slackId } = req.body;
7681

77-
const team = await TeamsService.editSlackId(req.currentUser, req.organization, req.params.teamId, slackId);
82+
const team = await TeamsService.editSlackId(req.currentUser, req.organization, req.params.teamId as string, slackId);
7883
res.status(200).json(team);
7984
} catch (error: unknown) {
8085
next(error);
@@ -225,7 +230,7 @@ export default class TeamsController {
225230

226231
const teamType = await TeamsService.editTeamType(
227232
req.currentUser,
228-
req.params.teamTypeId,
233+
req.params.teamTypeId as string,
229234
name,
230235
iconName,
231236
description,
@@ -252,7 +257,12 @@ export default class TeamsController {
252257
try {
253258
const { file } = req;
254259
if (!file) throw new HttpException(400, 'Invalid or undefined image data');
255-
const teamType = await TeamsService.setTeamTypeImage(req.currentUser, req.params.teamTypeId, file, req.organization);
260+
const teamType = await TeamsService.setTeamTypeImage(
261+
req.currentUser,
262+
req.params.teamTypeId as string,
263+
file,
264+
req.organization
265+
);
256266
res.status(200).json(teamType);
257267
} catch (error: unknown) {
258268
next(error);

0 commit comments

Comments
 (0)