Skip to content

Commit

Permalink
fix(admin credential): update document download endpoint (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw authored May 27, 2024
1 parent 6b8e396 commit 28fb2d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
- Api url typo fix
- App Access Management
- Fix carousel element issue
- Admin Credential
- Change document download endpoint

## 2.0.0-RC8

Expand Down
3 changes: 2 additions & 1 deletion src/features/appManagement/apiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
import { apiBaseQuery } from 'utils/rtkUtil'
import type { AppStatusDataState } from './types'
import i18next from 'i18next'
import { getSsiBase } from 'services/EnvironmentService'

export type useCasesItem = {
useCaseId: string
Expand Down Expand Up @@ -322,7 +323,7 @@ export const apiSlice = createApi({
}),
fetchNewDocumentById: builder.mutation({
query: (documentId) => ({
url: `/api/administration/documents/${documentId}`,
url: `${getSsiBase()}/api/credential/documents/${documentId}`,
responseHandler: async (response) => ({
headers: response.headers,
data: await response.blob(),
Expand Down

0 comments on commit 28fb2d4

Please sign in to comment.