Skip to content

Commit cab80c1

Browse files
authored
Merge pull request #1676 from hackmdio/bugfix/parseNoteIdByAlias-id-resolve
Fix parseNoteId bug
2 parents 0c3171b + 98bf5a6 commit cab80c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/models/note.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ module.exports = function (sequelize, DataTypes) {
251251
return callback(null, note.id)
252252
}
253253
} catch (err) {
254-
return callback(err, null)
254+
return _callback(err, null)
255255
}
256256
}
257257
if (!note) {
258-
return callback(null, null)
258+
return _callback(null, null)
259259
}
260260
return callback(null, note.id)
261261
}).catch(function (err) {

0 commit comments

Comments
 (0)