fix: code formatting

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-07-16 10:40:39 +02:00
parent ae9ec95a4e
commit 4d70ccafbc
13 changed files with 51 additions and 21 deletions

View file

@ -61,8 +61,12 @@ export class SessionService {
*/
fetchUsernameForSessionId(sessionId: string): Promise<Username | undefined> {
return new Promise((resolve, reject) => {
this.typeormStore.get(sessionId, (error?: Error, result?: SessionState) =>
error || !result ? reject(error) : resolve(result.username as Username),
this.typeormStore.get(
sessionId,
(error?: Error, result?: SessionState) =>
error || !result
? reject(error)
: resolve(result.username as Username),
);
});
}