11 lines
No EOL
218 B
JavaScript
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
|
|
} |