Skip to content

Commit

Permalink
Merge pull request #1676 from hackmdio/bugfix/parseNoteIdByAlias-id-r…
Browse files Browse the repository at this point in the history
…esolve

Fix parseNoteId bug
  • Loading branch information
Yukaii authored May 11, 2021
2 parents 0c3171b + 98bf5a6 commit cab80c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ module.exports = function (sequelize, DataTypes) {
return callback(null, note.id)
}
} catch (err) {
return callback(err, null)
return _callback(err, null)
}
}
if (!note) {
return callback(null, null)
return _callback(null, null)
}
return callback(null, note.id)
}).catch(function (err) {
Expand Down

0 comments on commit cab80c1

Please sign in to comment.