Skip to content

Commit 5017ec9

Browse files
fix: internal repo v2 (#792)
* fix: internal repo v2 * fix: updated internal repo query --------- Co-authored-by: svcAPLBot <174728082+svcAPLBot@users.noreply.github.com>
1 parent 1ddd77c commit 5017ec9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/redux/otomiApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ const injectedRtkApi = api.injectEndpoints({
531531
}),
532532
}),
533533
getInternalRepoUrls: build.query<GetInternalRepoUrlsApiResponse, GetInternalRepoUrlsApiArg>({
534-
query: (queryArg) => ({ url: `/v1/internalRepoUrls`, params: { teamId: queryArg.teamId } }),
534+
query: (queryArg) => ({ url: `/v2/teams/${queryArg.teamId}/internalRepoUrls` }),
535535
}),
536536
createObjWizard: build.mutation<CreateObjWizardApiResponse, CreateObjWizardApiArg>({
537537
query: (queryArg) => ({ url: `/v1/objwizard`, method: 'POST', body: queryArg.body }),
@@ -6305,8 +6305,8 @@ export type TestRepoConnectApiArg = {
63056305
}
63066306
export type GetInternalRepoUrlsApiResponse = /** status 200 Successfully obtained internal repo urls */ string[]
63076307
export type GetInternalRepoUrlsApiArg = {
6308-
/** ID of the team */
6309-
teamId?: string
6308+
/** ID of team */
6309+
teamId: string
63106310
}
63116311
export type CreateObjWizardApiResponse = /** status 200 Successfully configured obj wizard configuration */ object
63126312
export type CreateObjWizardApiArg = {

0 commit comments

Comments
 (0)