mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 21:04:15 +00:00
fix: uploadFiles logic
This commit is contained in:
parent
aa96dba18d
commit
ecd6c43c82
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user