Skip to content

Commit

Permalink
feat(certificate): api url update
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhigarg-bmw committed Jul 12, 2023
1 parent 6ae432e commit 868603d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/overlays/UpdateCertificate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function UpdateCertificate({ id }: { id: string }) {
try {
if (uploadedFile) {
const data = {
credentialTypeId: 'credentialType',
credentialType: 'DISMANTLER_CERTIFICATE', //static for now as we have only one certificate
document: uploadedFile,
}
await addCertificate(data).unwrap()
Expand Down
4 changes: 2 additions & 2 deletions src/features/certification/certificationApiSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export type CertificateResponse = {
}

export type CertificateRequest = {
credentialTypeId: string
credentialType: string
document: File
}

Expand All @@ -58,7 +58,7 @@ export const apiSlice = createApi({
}),
addCertificate: builder.mutation<void, CertificateRequest>({
query: (body) => ({
url: 'api/administration/companydata/ssiCertificate',
url: 'api/administration/companydata/certificates',
method: 'POST',
body: body,
}),
Expand Down

0 comments on commit 868603d

Please sign in to comment.