1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 20:19:30 +00:00

Implemented Class.delete

This commit is contained in:
2022-04-21 13:08:20 +00:00
parent 0de7b56973
commit 7ad77443ab

View File

@@ -281,6 +281,21 @@ class Class {
}
}
async delete() {
const sql = `
delete from
class
where
classId = ?;
`;
try {
await this.#conn.runQuery(sql, [ this.id ]);
} catch (e) {
console.error(e);
}
}
calculateAverageMovement() {
}