'use strict'; module.exports = (get_db) => ({ get_all (app_id) { const knex = get_db (); return knex.select ( 'id', 'message', 'data', 'timestamp' ) .from ('log') .where ({ app_id }); } });