From 0334766490c82f4fffc57a39f7f1f629c2f47548 Mon Sep 17 00:00:00 2001 From: Abe BW Date: Mon, 23 Nov 2015 14:07:35 -0500 Subject: [PATCH] fixed a bug where an error was sent to the updateAttributesCallback and then ignored --- lib/dao.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dao.js b/lib/dao.js index 3bf3214c..2c679452 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -2449,6 +2449,7 @@ DataAccessObject.prototype.updateAttributes = function updateAttributes(data, op context.data = typedData; function updateAttributesCallback(err) { + if (err) return cb(err); var ctx = { Model: Model, data: context.data,