Fixes in subscriptions. It now passes the tests.
API tests still don't work.
This commit is contained in:
parent
e9165838dc
commit
47b8d80c22
16 changed files with 2649 additions and 975 deletions
|
@ -104,6 +104,7 @@ async function ajaxListTx(tx, params, queryFun, columns, options) {
|
|||
}
|
||||
|
||||
async function ajaxListWithPermissionsTx(tx, context, fetchSpecs, params, queryFun, columns, options) {
|
||||
// Note that this function is not intended to be used with the synthetic admin context obtained by contextHelpers.getAdminContext()
|
||||
options = options || {};
|
||||
|
||||
const permCols = [];
|
||||
|
|
|
@ -10,7 +10,8 @@ module.exports = {
|
|||
getListMergeTags,
|
||||
rollbackAndReleaseConnection,
|
||||
filterObject,
|
||||
enforce
|
||||
enforce,
|
||||
cleanupFromPost
|
||||
};
|
||||
|
||||
function getDefaultMergeTags(callback) {
|
||||
|
@ -127,4 +128,8 @@ function enforce(condition, message) {
|
|||
if (!condition) {
|
||||
throw new Error(message);
|
||||
}
|
||||
}
|
||||
|
||||
function cleanupFromPost(value) {
|
||||
return (value || '').toString().trim();
|
||||
}
|
|
@ -6,13 +6,11 @@ const isemail = require('isemail');
|
|||
|
||||
const bluebird = require('bluebird');
|
||||
const mergeTemplateIntoLayout = bluebird.promisify(require('./tools').mergeTemplateIntoLayout);
|
||||
const queryParams = require('./tools').queryParams;
|
||||
|
||||
module.exports = {
|
||||
validateEmail,
|
||||
validateEmailGetMessage,
|
||||
mergeTemplateIntoLayout,
|
||||
queryParams
|
||||
mergeTemplateIntoLayout
|
||||
};
|
||||
|
||||
async function validateEmail(address, checkBlocked) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue