Skip to content

Commit 98bf5a6

Browse files
committed
Fix async series been interrupted by parse alias
Signed-off-by: Yukai Huang <[email protected]>
1 parent 0c3171b commit 98bf5a6

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)