mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 19:59:27 +00:00
Close database connection when finished with it
This commit is contained in:
@@ -81,6 +81,8 @@ class Class {
|
||||
classId
|
||||
]);
|
||||
|
||||
conn.close();
|
||||
|
||||
this.teacherIds = ids.map(record => record.id);
|
||||
|
||||
const [ teachers, subject ] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user