refactoring part 2: mainly consolidation of token, ids and passwort

This commit is contained in:
2025-07-17 08:09:17 +02:00
parent 34d5034a71
commit 143bb128a5
10 changed files with 74 additions and 76 deletions

View File

@@ -1,12 +1,11 @@
import { client } from '$lib/minio';
import { db } from '$lib/server/dbService';
/** @type {import('./$types').RequestHandler} */
export async function GET({ params }) {
const vorgangName = params.vorgang;
let getCodeSQLStmt = `SELECT pw FROM cases WHERE name = ?;`;
const row = db.prepare(getCodeSQLStmt).get(vorgangName);
let getCodeSQLStatement = `SELECT pw FROM cases WHERE name = ?;`;
const row = db.prepare(getCodeSQLStatement).get(vorgangName);
let password = row.pw;
if (password) {