19 lines
515 B
JavaScript
Raw Permalink Normal View History

2019-11-23 22:34:59 +02:00
const persistence = require("../core/persistence/persistence");
module.exports.description = "Show all locks our keys have access to"
module.exports.builder = (yargs) => {
}
module.exports.handler = (argv) => {
console.log("Show all locks our keys have access to.");
persistence().LoadDB()
.then(db => {
db.Lock.findAll()
.then(locks => {
console.log("locks: ", locks.map(l => {
return l
}));
})
})
}