fix email attachment not being saved as item
This commit is contained in:
@ -61,10 +61,10 @@ export function emailAttachmentRouter() {
|
|||||||
(tx) =>
|
(tx) =>
|
||||||
tx.getRepository(UploadFile).save({
|
tx.getRepository(UploadFile).save({
|
||||||
url: '',
|
url: '',
|
||||||
userId: user.id,
|
fileName,
|
||||||
fileName: fileName,
|
|
||||||
status: UploadFileStatus.Initialized,
|
status: UploadFileStatus.Initialized,
|
||||||
contentType: contentType,
|
contentType: contentType,
|
||||||
|
user: { id: user.id },
|
||||||
}),
|
}),
|
||||||
undefined,
|
undefined,
|
||||||
user.id
|
user.id
|
||||||
|
|||||||
Reference in New Issue
Block a user