don't fail to load page because chainquery returns an error

This commit is contained in:
Sean Yesmunt 2020-05-25 00:39:14 -04:00
parent 737e0ed7ab
commit f1a62160b4

View file

@ -12,7 +12,8 @@ function queryPool(sql, params) {
return new Promise(resolve => {
pool.query(sql, params, (error, rows) => {
if (error) {
throw Error(error);
resolve();
return;
}
resolve(rows);