ImportHandler: Use asynchronous rename instead of `fs.renameSync()`

pull/4779/head
Richard Hansen 2021-02-07 18:38:49 -05:00 committed by John McLear
parent c7b1abebe4
commit 5b1b030906
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ const doImport = async (req, res, padId) => {
// See https://github.com/ether/etherpad-lite/issues/2572
if (fileIsHTML || !useConvertor) {
// if no convertor only rename
fs.renameSync(srcFile, destFile);
await fsp_rename(srcFile, destFile);
} else {
// @TODO - no Promise interface for convertors (yet)
await new Promise((resolve, reject) => {