From 5d7162ac9ae5f97ab4822c45557dc1226699ab25 Mon Sep 17 00:00:00 2001 From: Ray Bellis Date: Tue, 22 Jan 2019 14:58:25 +0000 Subject: [PATCH] utils/ImportHtml.js: migrate to thenify --- src/node/utils/ImportHtml.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/utils/ImportHtml.js b/src/node/utils/ImportHtml.js index 04037eab5..d46b715d3 100644 --- a/src/node/utils/ImportHtml.js +++ b/src/node/utils/ImportHtml.js @@ -18,6 +18,7 @@ var log4js = require('log4js'); var Changeset = require("ep_etherpad-lite/static/js/Changeset"); var contentcollector = require("ep_etherpad-lite/static/js/contentcollector"); var cheerio = require("cheerio"); +const thenify = require("thenify").withCallback; function setPadHTML(pad, html, callback) { @@ -94,4 +95,4 @@ function setPadHTML(pad, html, callback) callback(null); } -exports.setPadHTML = setPadHTML; +exports.setPadHTML = thenify(setPadHTML);