From 02f193dc44b491147749b68f1314acdbefb13108 Mon Sep 17 00:00:00 2001 From: Allison Kemmerle Date: Thu, 5 Dec 2024 12:35:14 -0500 Subject: [PATCH] Address feedback & add property to type --- lib/github.ts | 4 ++-- types/developerTestAccounts.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/github.ts b/lib/github.ts index d779cb15..a12133a6 100644 --- a/lib/github.ts +++ b/lib/github.ts @@ -34,8 +34,8 @@ export async function fetchFileFromRepository( }) ); - const { data } = await fetchRepoFile(repoPath, filePath, ref); - return data as T; + const { data } = await fetchRepoFile(repoPath, filePath, ref); + return data; } catch (err) { throw new Error( i18n(`${i18nKey}.fetchFileFromRepository.errors.fetchFail`), diff --git a/types/developerTestAccounts.ts b/types/developerTestAccounts.ts index 60179d4d..d1deef40 100644 --- a/types/developerTestAccounts.ts +++ b/types/developerTestAccounts.ts @@ -5,6 +5,7 @@ export type DeveloperTestAccount = { createdAt: string; updatedAt: string; status: string; + id: number; }; export type FetchDeveloperTestAccountsResponse = {