diff --git a/mod/templates/_templates.js b/mod/templates/_templates.js index d11c7cd0f..330b08fa5 100644 --- a/mod/templates/_templates.js +++ b/mod/templates/_templates.js @@ -51,11 +51,11 @@ module.exports = async (key, language = 'en', params = {}) => { // Prevent prototype polluting assignment. if (/__proto__/.test(key)) return; - const custom_templates = await new Promise(async (resolve, reject)=>{ + const custom_templates = await new Promise((resolve)=>{ if (!process.env.CUSTOM_TEMPLATES) return resolve({}) - resolve(await getFrom[process.env.CUSTOM_TEMPLATES.split(':')[0]](process.env.CUSTOM_TEMPLATES)) + resolve(getFrom[process.env.CUSTOM_TEMPLATES.split(':')[0]](process.env.CUSTOM_TEMPLATES)) }) const templates = merge({}, diff --git a/mod/workspace/_workspace.js b/mod/workspace/_workspace.js index 2275e6e86..98d186cf9 100644 --- a/mod/workspace/_workspace.js +++ b/mod/workspace/_workspace.js @@ -2,11 +2,11 @@ const clone = require('../utils/clone.js') const Roles = require('../utils/roles.js') -const merge = require('../utils/merge') +//const merge = require('../utils/merge') const _getLayer = require('./getLayer') -const getTemplate = require('./getTemplate') +//const getTemplate = require('./getTemplate') module.exports = async (req, res) => {