trilium/src/routes/api/event_log.js

11 lines
216 B
JavaScript
Raw Normal View History

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