mirror of https://github.com/status-im/codimd.git
Fix async series been interrupted by parse alias
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
parent
0c3171b17d
commit
98bf5a6148
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue