From c221ee8cb256f74c330d579443cde33bfc12c4c3 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Tue, 25 Jul 2023 16:03:20 +0200 Subject: [PATCH] deb --- src/services/storage/applicationStorage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/storage/applicationStorage.ts b/src/services/storage/applicationStorage.ts index 67f8372b..aea2373b 100644 --- a/src/services/storage/applicationStorage.ts +++ b/src/services/storage/applicationStorage.ts @@ -3,6 +3,7 @@ import { DataSource, EntityManager } from "typeorm" import { Application } from "./entity/Application.js" import UserStorage from './userStorage.js'; import { ApplicationUser } from './entity/ApplicationUser.js'; +import { getLogger } from '../helpers/logger.js'; export default class { DB: DataSource | EntityManager userStorage: UserStorage @@ -74,6 +75,7 @@ export default class { async GetApplicationUser(application: Application, userIdentifier: string, entityManager = this.DB): Promise { const found = await this.GetApplicationUserIfExists(application, userIdentifier, entityManager) if (!found) { + getLogger({ appName: application.name })("user", userIdentifier, "not found") throw new Error(`application user not found`) }