forked from DebaucheryLibrarian/traxxx
Added basic actor and network overview. Added DDF Network actor scraper. Various bug fixes and layout improvements.
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
function whereOr(query, table, builder) {
|
||||
if (!query) {
|
||||
return {};
|
||||
}
|
||||
|
||||
Object.entries(query).forEach(([key, value]) => {
|
||||
if (value !== undefined) {
|
||||
builder.orWhere(`${table}.${key}`, value);
|
||||
}
|
||||
});
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
module.exports = whereOr;
|
||||
|
||||
Reference in New Issue
Block a user