mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(server): move avatar attachment before setting cid reference (#11231)
close CLOUD-187
This commit is contained in:
@@ -67,7 +67,6 @@ export class MailJob {
|
||||
}
|
||||
|
||||
if (workspaceProps.avatar) {
|
||||
workspaceProps.avatar = 'cid:workspaceAvatar';
|
||||
options.attachments = [
|
||||
{
|
||||
cid: 'workspaceAvatar',
|
||||
@@ -76,6 +75,7 @@ export class MailJob {
|
||||
encoding: 'base64',
|
||||
},
|
||||
];
|
||||
workspaceProps.avatar = 'cid:workspaceAvatar';
|
||||
}
|
||||
// @ts-expect-error replacement
|
||||
props[key] = workspaceProps;
|
||||
|
||||
Reference in New Issue
Block a user