diff --git a/lib/Test.js b/lib/Test.js index 85ff2c6..d516c31 100644 --- a/lib/Test.js +++ b/lib/Test.js @@ -147,6 +147,21 @@ class Test { ); } + async delete() { + const sql = ` + delete from + test + where + testId = ?; + `; + + try { + await this.#conn.runQuery(sql, [ this.id ]); + } catch (e) { + console.error(e); + } + } + async hasAccess(u) { const userTests = await u.getTests();