Skip to content

Commit d9e4459

Browse files
authored
Fix revoke attributes payoad (#1032)
1 parent b7ad6eb commit d9e4459

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/api/attribute/attribute.services.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,15 @@ async function updateVerifiedPartyAttribute({
132132
async function revokeVerifiedPartyAttribute({
133133
partyId,
134134
attributeId,
135+
agreementId,
135136
}: {
136137
partyId: string
137138
attributeId: string
139+
agreementId: string
138140
}) {
139141
return axiosInstance.delete<Attribute>(
140-
`${BACKEND_FOR_FRONTEND_URL}/tenants/${partyId}/attributes/verified/${attributeId}`
142+
`${BACKEND_FOR_FRONTEND_URL}/tenants/${partyId}/attributes/verified/${attributeId}`,
143+
{ data: { agreementId } }
141144
)
142145
}
143146

src/pages/ProviderAgreementDetailsPage/components/ProviderAgreementDetailsAttributesSectionsList/ProviderAgreementDetailsVerifiedAttributesSection/ProviderAgreementDetailsVerifiedAttributesDrawer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function useGetDrawerComponents(
152152
{
153153
partyId: agreement.consumer.id,
154154
attributeId,
155+
agreementId: agreement.id,
155156
},
156157
{ onSuccess: closeProviderAgreementVerifiedAttributesDrawer }
157158
)

0 commit comments

Comments
 (0)