fix deprecation warning

This commit is contained in:
daniel-j
2021-08-14 18:15:06 +02:00
parent 32bd0a28e0
commit 159edd4ed9

View File

@@ -349,7 +349,7 @@ router.get('/', async ctx => {
app.use(router.routes())
app.use(router.allowedMethods())
fs.rmdir('uploads', {recursive: true}, (err) => {
fs.rm('uploads', {recursive: true}, (err) => {
if (err) throw err
mkdirp('uploads').then (() => {
app.listen(port)