trilium/src/routes/api/event_log.js

11 lines
213 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() {
2018-05-27 00:38:25 +08:00
return await sql.getRows("SELECT * FROM event_log ORDER BY dateCreated 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
};