correctly display Vorgangsname in Vorgang page

This commit is contained in:
2025-07-10 11:03:15 +02:00
parent 564716e853
commit f7245fac90
3 changed files with 14 additions and 3 deletions

View File

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