Skip to content

Commit 07c84b0

Browse files
committed
#1183 prettier
1 parent ae9fae5 commit 07c84b0

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class TeamsController {
6262
next(error);
6363
}
6464
}
65-
65+
6666
static async setTeamLeads(req: Request, res: Response, next: NextFunction) {
6767
try {
6868
const { userIds } = req.body;
@@ -74,15 +74,15 @@ export default class TeamsController {
7474
next(error);
7575
}
7676
}
77-
77+
7878
static async deleteTeam(req: Request, res: Response, next: NextFunction) {
7979
try {
8080
const { teamId } = req.params;
8181
const deleter = await getCurrentUser(res);
8282
await TeamsService.deleteTeam(deleter, teamId);
8383
return res.status(204).json({ message: `Successfully deleted team with id ${teamId}` });
84-
} catch (error: unknown) {
84+
} catch (error: unknown) {
8585
next(error);
86-
}
86+
}
8787
}
8888
}

src/backend/src/services/teams.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default class TeamsService {
180180

181181
await prisma.team.delete({ where: { teamId }, ...teamQueryArgs });
182182
}
183-
183+
184184
/**
185185
* Update the given teamId's team's leads
186186
* @param submitter a user who's making this request

src/backend/tests/teams.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ describe('Teams', () => {
253253
expect(prisma.team.delete).toHaveBeenCalledWith({ where: { teamId: prismaTeam1.teamId } });
254254
});
255255
});
256-
256+
257257
describe('setTeamLeads', () => {
258258
test('setTeamLeads submitter is not the head or admin', async () => {
259259
vi.spyOn(prisma.team, 'findUnique').mockResolvedValue(prismaTeam1);

src/frontend/src/apis/teams.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const setTeamHead = (id: string, userId: number) => {
3939

4040
export const deleteTeam = (id: string) => {
4141
return axios.post(apiUrls.teamsDelete(id));
42-
};
42+
};
4343

4444
export const setTeamLeads = (id: string, userIds: number[]) => {
4545
return axios.post<Team>(apiUrls.teamsSetLeads(id), {

0 commit comments

Comments
 (0)