From 1fc4783251f682bb4213a339878111a71b5d7494 Mon Sep 17 00:00:00 2001 From: Kurt King Date: Wed, 9 Oct 2024 16:59:22 -0600 Subject: [PATCH] Update team check to be case sensitive --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index 4acb311..8f6bb63 100644 --- a/src/api.ts +++ b/src/api.ts @@ -189,7 +189,7 @@ export class OpsgenieApi implements Opsgenie { async getSchedulesForTeam(name: string): Promise { const response = await this.fetch("/v2/schedules"); - return response.data.filter(schedule => schedule.ownerTeam && schedule.ownerTeam.name === name); + return response.data.filter(schedule => schedule.ownerTeam && schedule.ownerTeam.name.toLowerCase() === name.toLowerCase()); } async getTeams(): Promise {