refactor 'Datei zu Vorgang hinzufügen': Add model files to existing cases

This commit is contained in:
2025-07-14 13:54:08 +02:00
parent fa59db7a88
commit 873a382f69
2 changed files with 29 additions and 4 deletions

View File

@@ -39,6 +39,14 @@ export const getVorgang = function (caseId: string) {
return res;
};
export const getVorgangByName = function (caseName: string) {
let getVorgangByName_stmt = `SELECT token, name, pw FROM cases WHERE name = ?`;
const stmt = db.prepare(getVorgangByName_stmt);
const res = stmt.get(caseName);
return res;
};
/**
* Fetches list of vorgänge from s3 bucket
* @returns list of available cases