Skip to content

Commit f1c9ee4

Browse files
committed
Fix actioinPandoc
Signed-off-by: Yukai Huang <[email protected]>
1 parent 3b2df24 commit f1c9ee4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/note/noteActions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ const outputFormats = {
117117
async function actionPandoc (req, res, note) {
118118
var url = config.serverURL || 'http://' + req.get('host')
119119
var body = note.content
120-
var extracted = models.Note.extractMeta(body)
120+
var extracted = Note.extractMeta(body)
121121
var content = extracted.markdown
122-
var title = models.Note.decodeTitle(note.title)
122+
var title = Note.decodeTitle(note.title)
123123

124124
if (!fs.existsSync(config.tmpPath)) {
125125
fs.mkdirSync(config.tmpPath)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108
"mysql": "~2.17.1",
109109
"mysql2": "^2.0.1",
110110
"passport": "~0.4.0",
111+
"passport-bitbucket-oauth2": "~0.1.2",
111112
"passport-dropbox-oauth2": "~1.1.0",
112113
"passport-facebook": "~2.1.1",
113114
"passport-github": "~1.1.0",
114-
"passport-bitbucket-oauth2": "~0.1.2",
115115
"passport-gitlab2": "~4.0.0",
116116
"passport-google-oauth20": "~1.0.0",
117117
"passport-ldapauth": "~2.1.3",

0 commit comments

Comments
 (0)