mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 20:59:30 +00:00
Close database connection when finished with it
This commit is contained in:
@@ -50,6 +50,8 @@ class User {
|
||||
const res =
|
||||
await conn.runQuery(sql, [ userId ]);
|
||||
|
||||
conn.close();
|
||||
|
||||
if (!res.length)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user