16 lines
243 B
JavaScript
16 lines
243 B
JavaScript
'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 });
|
|
}
|
|
});
|