node-go/server/data/queries/message.js
2020-01-20 23:36:52 -08:00

13 lines
No EOL
213 B
JavaScript

const knex = require('../db');
// TODO timestamps
const findMessageByRoom = async (roomId) => {
return await knex('message')
.where({'id': roomId})
.select('*');
}
module.exports = {
findMessageByRoom
}