mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 18:39:32 +00:00
Added TestResult.delete
This commit is contained in:
@@ -113,6 +113,17 @@ class TestResult {
|
|||||||
return 'C';
|
return 'C';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete() {
|
||||||
|
const sql = `
|
||||||
|
delete from
|
||||||
|
testResult
|
||||||
|
where
|
||||||
|
testResultId = ?;
|
||||||
|
`;
|
||||||
|
|
||||||
|
this.#conn.runQuery(sql, [ this.id ]);
|
||||||
|
}
|
||||||
|
|
||||||
static async create(conn, testId, accountId, studentId, mark) {
|
static async create(conn, testId, accountId, studentId, mark) {
|
||||||
const sql = `
|
const sql = `
|
||||||
insert into testResult
|
insert into testResult
|
||||||
|
|||||||
Reference in New Issue
Block a user