Improved site and network pages. Fixed various issues.

This commit is contained in:
2019-11-12 01:22:20 +01:00
parent 3c76d39301
commit 832e96ced1
118 changed files with 327 additions and 224 deletions

11
src/utils/where-or.js Normal file
View File

@@ -0,0 +1,11 @@
'use strict';
function whereOr(query, builder) {
Object.entries(query).forEach(([key, value]) => {
if (value !== undefined) {
builder.orWhere(`sites.${key}`, value);
}
});
}
module.exports = whereOr;