Skip to content

Commit 1914f1b

Browse files
committed
refactor: Simplify error handling in version retrieval and clean up team member addition logic
1 parent 2df04ee commit 1914f1b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

services/backend/src/config/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ try {
2525
source: 'package.json'
2626
};
2727
}
28-
} catch (error) {
28+
} catch {
2929
// Use static fallback if package.json can't be read
3030
}
3131

services/backend/src/routes/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const registerRoutes = (server: FastifyInstance): void => {
7474
}, 'Checking version display setting');
7575

7676
// Build base response
77+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7778
const response: Record<string, any> = {
7879
message: 'DeployStack Backend is running.',
7980
status: server.db ? 'Database Connected' : 'Database Not Configured/Connected - Use /api/db/status and /api/db/setup',

services/backend/src/routes/teams/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
CreateTeamSchema,
88
UpdateTeamSchema,
99
TeamResponseSchema,
10-
TeamsListResponseSchema,
1110
TeamsListWithRoleInfoResponseSchema,
1211
TeamMembersListResponseSchema,
1312
TeamMemberResponseSchema,
@@ -689,7 +688,7 @@ export default async function teamsRoute(fastify: FastifyInstance) {
689688
}
690689

691690
// Add the member
692-
const membership = await TeamService.addTeamMember(teamId, validatedData.userId, validatedData.role);
691+
await TeamService.addTeamMember(teamId, validatedData.userId, validatedData.role);
693692

694693
// Get the full member info to return
695694
const members = await TeamService.getTeamMembersWithUserInfo(teamId);

0 commit comments

Comments
 (0)