Commit 8e50a9e7 authored by nanahira's avatar nanahira

fix type

parent 5c00c181
Pipeline #14477 passed with stages
in 2 minutes and 18 seconds
......@@ -4,7 +4,7 @@ import config from '../../config';
import * as busboy from 'async-busboy';
import * as mime from 'mime';
import * as uuid from 'uuid';
import {S3Client }from '@aws-sdk/client-s3';
import { S3Client }from '@aws-sdk/client-s3';
import { Upload } from '@aws-sdk/lib-storage';
import { Readable } from 'stream';
......@@ -25,7 +25,7 @@ export const UploadImage = async (ctx: Context) => {
const uploadFiles: { fieldname: string, file: Readable, fname: string, encoding: string, mimeType: string }[] = []
const results: any[] = [];
const waitForUploads: Promise<any>[] = [];
const filesToUpload: Promise<Readable>[] = [];
const filesToUpload: Readable[] = [];
await busboy(ctx.req, {
onFile: async(fieldname, _file, fname, encoding, mimeType) => {
const file = new Readable().wrap(_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment