Skip to content

Instantly share code, notes, and snippets.

@AbilashK
Last active Jul 11, 2017
Embed
What would you like to do?
connection.query(checkLocation, [location], function (err, rows) {
if (!err) {
// Location exists
connection.query(addShop, [shopParams], function (err, rows) {
if (!err) {
// Shop added
connection.query(linkState, [shopParams], function (err, rows) {
if (!err) {
// Categorize with state
} else {
console.log(err);
callback(0);
}
})
} else {
console.log(err);
callback(0);
}
})
} else {
console.log(err);
callback(0);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment