node-go/server/data/queries/room.js
2020-01-18 15:49:35 -08:00

11 lines
No EOL
218 B
JavaScript

const knex = require('../db')
const findPublicRooms = async () => {
return await knex('room')
.where('private', false)
.select(['id', 'name', 'description', 'language'])
}
module.exports = {
findPublicRooms
}