DB API Reads

This commit is contained in:
garrettmills
2020-03-01 15:37:52 -06:00
parent fc5fc14b3f
commit dfcaf046c6
17 changed files with 585 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
const Scope = require('flitter-orm/src/model/Scope')
class ValidScope extends Scope {
async filter(to_filter) {
return to_filter.equal('valid', true)
.greater_than('expires', new Date)
.less_than('issued', new Date)
}
}
module.exports = exports = ValidScope