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

13 lines
213 B
JavaScript
Raw Permalink Normal View History

2020-01-21 07:36:52 +00:00
const knex = require('../db');
// TODO timestamps
const findMessageByRoom = async (roomId) => {
return await knex('message')
.where({'id': roomId})
.select('*');
}
module.exports = {
findMessageByRoom
}