From b11ba68ff8ea7916816146941a5b8902dd0e8a77 Mon Sep 17 00:00:00 2001 From: "tobias.bruckert@mcon-group.com" <62531735+tb102122@users.noreply.github.com> Date: Fri, 6 Mar 2026 17:47:35 +1100 Subject: [PATCH] adjust based on review --- .../service/infrastructure/notificationProviders/teams.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/src/service/infrastructure/notificationProviders/teams.ts b/server/src/service/infrastructure/notificationProviders/teams.ts index a10920d2a..dd9b217a7 100644 --- a/server/src/service/infrastructure/notificationProviders/teams.ts +++ b/server/src/service/infrastructure/notificationProviders/teams.ts @@ -3,12 +3,13 @@ import type { Notification } from "@/types/index.js"; import { INotificationProvider } from "@/service/index.js"; import type { NotificationMessage } from "@/types/notificationMessage.js"; import { getTestMessage } from "@/service/infrastructure/notificationProviders/utils.js"; +import type { ILogger } from "@/utils/logger.js"; import got, { HTTPError } from "got"; export class TeamsProvider implements INotificationProvider { - private logger: any; + private logger: ILogger; - constructor(logger: any) { + constructor(logger: ILogger) { this.logger = logger; } @@ -72,7 +73,7 @@ export class TeamsProvider implements INotificationProvider { }); return true; } catch (error) { - const err = error as Error; + const err = error as HTTPError; this.logger.warn({ message: "Teams alert failed via sendMessage", service: SERVICE_NAME,