mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Added TestTemplate.delete
This commit is contained in:
@@ -175,6 +175,21 @@ class TestTemplate {
|
|||||||
this.name = name;
|
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) {
|
hasAccess(u) {
|
||||||
return u != null;
|
return u != null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user