1

Throw on error

This commit is contained in:
Alex Yatskov 2015-03-11 15:54:34 +09:00
parent 65bba56252
commit 34b4eac3c1

View File

@ -266,10 +266,17 @@ function accessReview(query, callback) {
throw err;
}
var pitcher = function(err, info) {
if (err) {
throw err;
}
};
for (var categoryId in query.profile) {
pool.query(
'INSERT INTO historyGroups(categoryId, categoryValue, historyId) VALUES(?, ?, ?)',
[categoryId, query.profile[categoryId], info.insertId]
[categoryId, query.profile[categoryId], info.insertId],
pitcher
);
}
});