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

Added TestTemplate.delete

This commit is contained in:
2022-04-21 13:15:54 +00:00
parent cd875d986f
commit 6d8e66eeb6

View File

@@ -175,6 +175,21 @@ class TestTemplate {
this.name = name;
}
async delete() {
const sql = `
delete from
testTemplate
where
testTemplateId = ?;
`;
try {
await this.#conn.runQuery(sql, [ this.id ]);
} catch (e) {
console.error(e);
}
}
hasAccess(u) {
return u != null;
}