mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 20:39:28 +00:00
Added TestResult.delete
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user