mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
import/export: Promisify Abiword and LibreOffice conversion
This commit is contained in:
parent
b321267e66
commit
b2c0837cf5
4 changed files with 67 additions and 91 deletions
|
@ -98,8 +98,7 @@ exports.doExport = async (req, res, padId, readOnlyId, type) => {
|
|||
settings.soffice != null ? require('../utils/LibreOffice')
|
||||
: settings.abiword != null ? require('../utils/Abiword')
|
||||
: null;
|
||||
// @TODO no Promise interface for converters (yet)
|
||||
await util.promisify(converter.convertFile)(srcFile, destFile, type);
|
||||
await converter.convertFile(srcFile, destFile, type);
|
||||
}
|
||||
|
||||
// send the file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue