fix(server): move avatar attachment before setting cid reference (#11231)

close CLOUD-187
This commit is contained in:
fengmk2
2025-03-27 08:00:17 +00:00
parent 5fcdc99f23
commit 4d6115bb00

View File

@@ -67,7 +67,6 @@ export class MailJob {
} }
if (workspaceProps.avatar) { if (workspaceProps.avatar) {
workspaceProps.avatar = 'cid:workspaceAvatar';
options.attachments = [ options.attachments = [
{ {
cid: 'workspaceAvatar', cid: 'workspaceAvatar',
@@ -76,6 +75,7 @@ export class MailJob {
encoding: 'base64', encoding: 'base64',
}, },
]; ];
workspaceProps.avatar = 'cid:workspaceAvatar';
} }
// @ts-expect-error replacement // @ts-expect-error replacement
props[key] = workspaceProps; props[key] = workspaceProps;