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

11 lines
220 B
JavaScript
Raw Normal View History

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