node-go/server/data/queries/room.js

11 lines
218 B
JavaScript
Raw Normal View History

2020-01-18 23:49:35 +00:00
const knex = require('../db')
const findPublicRooms = async () => {
return await knex('room')
.where('private', false)
.select(['id', 'name', 'description', 'language'])
}
module.exports = {
findPublicRooms
}