Skip to content

Commit

Permalink
fix: uploadFiles logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yassinedorbozgithub committed Dec 9, 2024
1 parent aa96dba commit ecd6c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/attachment/services/attachment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class AttachmentService extends BaseService<Attachment> {
} 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,
Expand Down

0 comments on commit ecd6c43

Please sign in to comment.