1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 15:59:25 +00:00

Added TestResult.delete

This commit is contained in:
2022-04-18 20:17:54 +00:00
parent 326dd35b44
commit 0e7f0534b7

View File

@@ -113,6 +113,17 @@ class TestResult {
return 'C';
}
delete() {
const sql = `
delete from
testResult
where
testResultId = ?;
`;
this.#conn.runQuery(sql, [ this.id ]);
}
static async create(conn, testId, accountId, studentId, mark) {
const sql = `
insert into testResult