From ecd6c43c82703791c4c57fb2893ac984db506ba2 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Mon, 9 Dec 2024 17:57:26 +0100 Subject: [PATCH] fix: uploadFiles logic --- api/src/attachment/services/attachment.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/attachment/services/attachment.service.ts b/api/src/attachment/services/attachment.service.ts index 7d34a288..6a50e6f3 100644 --- a/api/src/attachment/services/attachment.service.ts +++ b/api/src/attachment/services/attachment.service.ts @@ -159,7 +159,7 @@ export class AttachmentService extends BaseService { } else { if (Array.isArray(files?.file)) { for (const { size, mimetype, filename } of files?.file) { - const uploadedFile = await this.repository.create({ + const uploadedFile = await this.create({ size, type: mimetype, name: filename,