refactoring: rename code retrieval function

This commit is contained in:
2025-06-10 08:08:11 +02:00
parent 20c273407f
commit c1958e848a

View File

@@ -32,7 +32,7 @@ export const actions = {
// Jetzt prüfen, ob Code vorhanden ist und
// dem eingegebenen Code entspricht
const token = await codex(caseNumber);
const token = await get_code_or_null(caseNumber);
console.log(`xxx ${token}, ${user_token}`);
// token vorhanden, check ob gleich sind
@@ -51,7 +51,7 @@ export const actions = {
// returns `code` oder `null`
async function codex(vorg) {
async function get_code_or_null(vorg) {
const code_name = '__perm__';
const obj_path = `${vorg}/${code_name}`;