fix email attachment not being saved as item

This commit is contained in:
Hongbo Wu
2023-10-12 10:46:12 +08:00
parent 135999fa83
commit f1c4bc6a74

View File

@ -61,10 +61,10 @@ export function emailAttachmentRouter() {
(tx) =>
tx.getRepository(UploadFile).save({
url: '',
userId: user.id,
fileName: fileName,
fileName,
status: UploadFileStatus.Initialized,
contentType: contentType,
user: { id: user.id },
}),
undefined,
user.id