Skip to content

Commit c83eaa4

Browse files
committed
Revert
1 parent f13cdb6 commit c83eaa4

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

packages/server/api/src/app/authentication/authentication.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const authenticationController: FastifyPluginAsyncTypebox = async (
9090
skipAuth: true,
9191
},
9292
},
93-
async (_request, reply) => {
93+
async (request, reply) => {
9494
return removeAuthCookiesAndReply(reply);
9595
},
9696
);

packages/server/api/src/app/project/project-service.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,6 @@ export const projectService = {
127127
return project;
128128
},
129129

130-
async getUserProject(ownerId: UserId): Promise<Project | null> {
131-
return projectRepo().findOneBy({
132-
ownerId,
133-
deleted: IsNull(),
134-
});
135-
},
136-
137130
async addProjectToOrganization({
138131
projectId,
139132
organizationId,

packages/shared/src/lib/authentication/dto/authentication-response.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,3 @@ export type AuthenticationResponse = UserWithoutPassword & {
99
projectRole: ProjectMemberRole | null;
1010
tablesRefreshToken: string;
1111
};
12-
13-
export const removePasswordPropFromUser = (user: User): UserWithoutPassword => {
14-
const { password: _, ...filteredUser } = user;
15-
return filteredUser;
16-
};

0 commit comments

Comments
 (0)