|
|
@@ -99,21 +99,6 @@ module.exports = { |
|
|
|
return null; |
|
|
|
}, |
|
|
|
|
|
|
|
getFilterFlat: async function ({ table, noDefault, filter }) { |
|
|
|
const res = await r |
|
|
|
.table(table) |
|
|
|
.filter(filter) |
|
|
|
.run(); |
|
|
|
|
|
|
|
if (res) |
|
|
|
return res; |
|
|
|
|
|
|
|
if (!noDefault) |
|
|
|
return []; |
|
|
|
|
|
|
|
return null; |
|
|
|
}, |
|
|
|
|
|
|
|
getAllAsync: async function ({ |
|
|
|
table, |
|
|
|
key, |
|
|
|