aboutsummaryrefslogtreecommitdiff
path: root/database.js
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2023-06-26 17:22:32 +0000
committerJoel Kronqvist <joelkronqvist@proton.me>2023-06-26 17:22:32 +0000
commit330012395587fe87ce36c29b3c5d1941aa022d0b (patch)
tree7018bc2250937b5ed724d0b37e55d992a4d3d986 /database.js
parent7f59612f4ad1061c99ae53ef92baf04511b7f9af (diff)
downloadLYLLRuoka-master.tar.gz
LYLLRuoka-master.zip
Bug fixes & clearer presentation of errors to end userHEADmasterdevel
Diffstat (limited to 'database.js')
-rw-r--r--database.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/database.js b/database.js
index d8e2d92..1f5b68f 100644
--- a/database.js
+++ b/database.js
@@ -44,8 +44,7 @@ class Database
{
this.pool.query(query, (err, res, fields) =>
{
- if (err)
- reject(err)
+ if (err) reject(err);
resolve(res);
});
})