Notes/src/routes/api/event_log.js

11 lines
216 B
JavaScript
Raw Normal View History

2017-11-03 23:00:35 -04:00
"use strict";
const sql = require('../../services/sql');
2018-03-30 15:34:07 -04:00
async function getEventLog() {
2019-03-12 20:58:31 +01:00
return await sql.getRows("SELECT * FROM event_log ORDER BY utcDateCreated DESC");
2018-03-30 15:34:07 -04:00
}
2017-11-03 23:00:35 -04:00
2018-03-30 15:34:07 -04:00
module.exports = {
getEventLog
};