backend/app/models/scopes/Active.scope.js
2020-02-08 15:27:53 -06:00

10 lines
213 B
JavaScript

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