mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
unify audit fields, fixes #102
This commit is contained in:
@@ -5,7 +5,7 @@ const sql = require('../../services/sql');
|
||||
async function getEventLog() {
|
||||
await deleteOld();
|
||||
|
||||
return await sql.getRows("SELECT * FROM event_log ORDER BY dateAdded DESC");
|
||||
return await sql.getRows("SELECT * FROM event_log ORDER BY dateCreated DESC");
|
||||
}
|
||||
|
||||
async function deleteOld() {
|
||||
|
||||
@@ -16,7 +16,7 @@ async function getRecentNotes() {
|
||||
recent_notes.isDeleted = 0
|
||||
AND branches.isDeleted = 0
|
||||
ORDER BY
|
||||
dateAccessed DESC
|
||||
dateCreated DESC
|
||||
LIMIT 200`);
|
||||
}
|
||||
|
||||
@@ -26,9 +26,7 @@ async function addRecentNote(req) {
|
||||
|
||||
await new RecentNote({
|
||||
branchId: branchId,
|
||||
notePath: notePath,
|
||||
dateAccessed: dateUtils.nowDate(),
|
||||
isDeleted: 0
|
||||
notePath: notePath
|
||||
}).save();
|
||||
|
||||
await optionService.setOption('startNotePath', notePath);
|
||||
|
||||
Reference in New Issue
Block a user