Fix async series been interrupted by parse alias

Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
This commit is contained in:
Yukai Huang 2021-05-11 16:51:27 +08:00
parent 0c3171b17d
commit 98bf5a6148
No known key found for this signature in database
GPG Key ID: A76CBD50B22052C0
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) {