Start back end test for Player model

This commit is contained in:
2020-11-08 11:33:26 -06:00
parent 9d03679063
commit 84f75aecd0
5 changed files with 117 additions and 1 deletions

View File

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