settings keys in DB converted to camel case
callback-based settings model replaced by async-based settings model
This commit is contained in:
parent
6c5c47ac2e
commit
d8ee364a4b
22 changed files with 123 additions and 143 deletions
|
@ -95,7 +95,7 @@ async function injectCustomFormData(customFormId, viewKey, data) {
|
|||
data.template.layout = form.layout || data.template.layout;
|
||||
data.formInputStyle = form.formInputStyle || '@import url(/subscription/form-input-style.css);';
|
||||
|
||||
const configItems = await settings.get(['ua_code']);
|
||||
const configItems = await settings.get(['uaCode']);
|
||||
|
||||
data.uaCode = configItems.uaCode;
|
||||
data.customSubscriptionScripts = config.customsubscriptionscripts || [];
|
||||
|
@ -243,7 +243,7 @@ router.getAsync('/:cid/widget', cors(corsOptions), async (req, res) => {
|
|||
|
||||
const list = await lists.getByCid(req.params.cid);
|
||||
|
||||
const configItems = settings.get(['serviceUrl', 'pgpPrivateKey']);
|
||||
const configItems = await settings.get(['serviceUrl', 'pgpPrivateKey']);
|
||||
|
||||
const data = {
|
||||
title: list.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue