Skip to content

Commit b00c36a

Browse files
authored
Fix workspaceLogo in invite-email signed twice (#15673)
as title
1 parent e518f03 commit b00c36a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/twenty-server/src/engine/core-modules/workspace-invitation/workspace-invitation.resolver.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ export class WorkspaceInvitationResolver {
8888
@AuthUser() user: UserEntity,
8989
@AuthWorkspace() workspace: WorkspaceEntity,
9090
): Promise<SendInvitationsOutput> {
91-
let workspaceLogoWithToken = '';
92-
93-
if (workspace.logo) {
94-
workspaceLogoWithToken = this.fileService.signFileUrl({
95-
url: workspace.logo,
96-
workspaceId: workspace.id,
97-
});
98-
}
99-
10091
const workspaceMemberRepository =
10192
await this.twentyORMGlobalManager.getRepositoryForWorkspace<WorkspaceMemberWorkspaceEntity>(
10293
workspace.id,
@@ -112,7 +103,7 @@ export class WorkspaceInvitationResolver {
112103

113104
return await this.workspaceInvitationService.sendInvitations(
114105
sendInviteLinkInput.emails,
115-
{ ...workspace, logo: workspaceLogoWithToken },
106+
workspace,
116107
workspaceMember,
117108
);
118109
}

0 commit comments

Comments
 (0)