Merge pull request #1676 from hackmdio/bugfix/parseNoteIdByAlias-id-resolve

Fix parseNoteId bug
This commit is contained in:
Yukai Huang 2021-05-11 17:18:23 +08:00 committed by GitHub
commit cab80c105d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {