Throw on error
This commit is contained in:
parent
65bba56252
commit
34b4eac3c1
@ -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
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user