backend/app/models/scopes/Active.scope.js

10 lines
213 B
JavaScript
Raw Normal View History

const Scope = require('flitter-orm/src/model/Scope')
class ActiveScope extends Scope {
async filter(to_filter) {
return to_filter.equal('Active', true)
}
}
module.exports = exports = ActiveScope