Commit d5baa4bf authored by A. Koch's avatar A. Koch

fix upload delete

parent 9b1c224c
Pipeline #1030 passed with stage
......@@ -34,11 +34,9 @@ class Uploads extends TinyEmitter {
})
app.delete('/uploads/:file', async (req, res) => {
upload.single('file')(req, res, async () => {
const minioClient = new Minio.Client(config.assets.client)
await minioClient.removeObject(config.assets.bucket, filename, req.params.file)
_this._response(req, res)
})
const minioClient = new Minio.Client(config.assets.client)
await minioClient.removeObject(config.assets.bucket, req.params.file)
_this._response(req, res)
})
}
......
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