mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 18:19:25 +00:00
Added TestTemplate.delete
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user