mirror of
https://github.com/zadam/trilium.git
synced 2024-09-30 04:25:58 +08:00
17 lines
330 B
JavaScript
17 lines
330 B
JavaScript
"use strict";
|
|
|
|
const RecentNote = require('../../entities/recent_note');
|
|
|
|
async function addRecentNote(req) {
|
|
const branchId = req.body.branchId;
|
|
const notePath = req.body.notePath;
|
|
|
|
await new RecentNote({
|
|
branchId: branchId,
|
|
notePath: notePath
|
|
}).save();
|
|
}
|
|
|
|
module.exports = {
|
|
addRecentNote
|
|
}; |