2017-11-05 11:46:50 +08:00
|
|
|
"use strict";
|
|
|
|
|
2018-04-02 00:03:21 +08:00
|
|
|
const RecentNote = require('../../entities/recent_note');
|
2017-11-05 11:46:50 +08:00
|
|
|
|
2018-03-31 03:34:07 +08:00
|
|
|
async function addRecentNote(req) {
|
2019-02-18 03:49:51 +08:00
|
|
|
const branchId = req.body.branchId;
|
|
|
|
const notePath = req.body.notePath;
|
2018-03-31 03:34:07 +08:00
|
|
|
|
2018-04-03 10:53:01 +08:00
|
|
|
await new RecentNote({
|
2018-03-31 03:34:07 +08:00
|
|
|
branchId: branchId,
|
2018-05-27 00:38:25 +08:00
|
|
|
notePath: notePath
|
2018-04-03 10:53:01 +08:00
|
|
|
}).save();
|
2018-03-31 03:34:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
addRecentNote
|
|
|
|
};
|