Skip to content
Snippets Groups Projects
Commit 60254ad1 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

test

parent 4d93f64a
2 merge requests!19Feat/us858 save expiration date,!17fix/US846-onDelete
......@@ -45,24 +45,26 @@ async function onDeleteAccount() {
)
log('info', `isAlpha: ${isAlpha()}`)
log('info', `userConsent: ${userConsent}`)
log('info', `userConsent: ${JSON.stringify(userConsent)}`)
if (userConsent.ID && userConsent.pointID) {
log('log', `Consent ${userConsent.ID} found for user`)
// Verify if it's dev env to prevent delete of real data
if (userConsent.serviceID && !isAlpha()) {
if (userConsent.serviceID) {
await deleteBoConsent(
secrets.boBaseUrl,
secrets.boToken,
userConsent.ID
)
// await terminateContract(
// secrets.wso2BaseUrl,
// secrets.apiToken,
// secrets.sgeLogin,
// secrets.contractId,
// userConsent.pointID,
// userConsent.serviceID
// )
// Verify if it's dev env to prevent delete of real data
if (!isAlpha()) {
// await terminateContract(
// secrets.wso2BaseUrl,
// secrets.apiToken,
// secrets.sgeLogin,
// secrets.contractId,
// userConsent.pointID,
// userConsent.serviceID
// )
}
} else {
log('error', `No service id retrieved from BO`)
throw errors.VENDOR_DOWN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment