diff --git a/index.js b/index.js index 7e879f11..3d9f3f7c 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ const os = require('os') const fp = require('fastify-plugin') const eos = require('end-of-stream') const { createWriteStream } = require('fs') -const { unlink } = require('fs').promises +const { unlink } = require('fs/promises') const path = require('path') const { generateId } = require('./lib/generateId') const util = require('util')