mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
lint: src/node/utils/ImportEtherpad.js
This commit is contained in:
parent
9fff82e370
commit
a41b4b8e45
1 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
// 'use strict';
|
||||||
|
// Uncommenting above breaks tests.
|
||||||
/**
|
/**
|
||||||
* 2014 John McLear (Etherpad Foundation / McLear Ltd)
|
* 2014 John McLear (Etherpad Foundation / McLear Ltd)
|
||||||
*
|
*
|
||||||
|
@ -14,12 +16,11 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const log4js = require('log4js');
|
|
||||||
const db = require('../db/DB');
|
const db = require('../db/DB');
|
||||||
const hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
const hooks = require('../../static/js/pluginfw/hooks');
|
||||||
|
|
||||||
exports.setPadRaw = function (padId, records) {
|
exports.setPadRaw = (padId, r) => {
|
||||||
records = JSON.parse(records);
|
const records = JSON.parse(r);
|
||||||
|
|
||||||
Object.keys(records).forEach(async (key) => {
|
Object.keys(records).forEach(async (key) => {
|
||||||
let value = records[key];
|
let value = records[key];
|
||||||
|
|
Loading…
Reference in a new issue