From 002e057d457abf3e068dbac91a15e289a547c057 Mon Sep 17 00:00:00 2001 From: Fenris Wolf Date: Thu, 2 Oct 2025 14:30:52 +0200 Subject: [PATCH] [sty] --- source/api/actions/session_begin.ts | 9 ++++++--- source/api/actions/session_end.ts | 10 ++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/source/api/actions/session_begin.ts b/source/api/actions/session_begin.ts index d5457dd..407fe82 100644 --- a/source/api/actions/session_begin.ts +++ b/source/api/actions/session_begin.ts @@ -65,12 +65,15 @@ namespace _zeitbild.api }), "restriction": () => restriction_none, "execution": () => async ({"input": input}) => { - if (input === null) { + if (input === null) + { return Promise.reject(new Error("impossible")); } - else { + else + { const passed : boolean = await _zeitbild.service.auth_internal.check(input.name, input.password); - if (! passed) { + if (! passed) + { return Promise.resolve({ "status_code": 403, "data": null, diff --git a/source/api/actions/session_end.ts b/source/api/actions/session_end.ts index 1e2dd4d..f0c3179 100644 --- a/source/api/actions/session_end.ts +++ b/source/api/actions/session_end.ts @@ -43,10 +43,12 @@ namespace _zeitbild.api "execution": async (stuff) => { const session : {key : string; value : lib_plankton.session.type_session} = await session_from_stuff(stuff); await lib_plankton.session.end(session.key); - return Promise.resolve({ - "status_code": 200, - "data": null, - }); + return Promise.resolve( + { + "status_code": 200, + "data": null, + } + ); }, } );