You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
300 B

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