don't fail to load page because chainquery returns an error
This commit is contained in:
parent
737e0ed7ab
commit
f1a62160b4
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue