node-go/packages/play-node-go/server/data/queries/room.js
2020-02-05 16:44:34 -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
}