chore: 🤖 rename application_credentials_sources_ids to brokered (#1255)
This commit is contained in:
1 parent
39c0835a99
commit
e3324ad64a
9 files changed
+37
-36
No files matched your search
@@ -465,7 +465,7 @@ export default function () {
|
||||
if (method === 'add-credential-sources') {
|
||||
updatedAttrs.credentialLibraryIds = target.credentialLibraryIds;
|
||||
updatedAttrs.credentialIds = target.credentialIds;
|
||||
attrs.applicationCredentialSourceIds.forEach((id) => {
|
||||
attrs.brokeredCredentialSourceIds.forEach((id) => {
|
||||
if (
|
||||
!updatedAttrs.credentialLibraryIds.includes(id) ||
|
||||
!updatedAttrs.credentialIds.includes(id)
|
||||
@@ -484,10 +484,10 @@ export default function () {
|
||||
updatedAttrs.credentialIds = target.credentialIds;
|
||||
updatedAttrs.credentialLibraryIds =
|
||||
updatedAttrs.credentialLibraryIds.filter((id) => {
|
||||
return !attrs.applicationCredentialSourceIds.includes(id);
|
||||
return !attrs.brokeredCredentialSourceIds.includes(id);
|
||||
});
|
||||
updatedAttrs.credentialIds = updatedAttrs.credentialIds.filter((id) => {
|
||||
return !attrs.applicationCredentialSourceIds.includes(id);
|
||||
return !attrs.brokeredCredentialSourceIds.includes(id);
|
||||
});
|
||||
}
|
||||
return target.update(updatedAttrs);
|
||||
|
||||
@@ -24,7 +24,7 @@ export default ApplicationSerializer.extend({
|
||||
});
|
||||
}
|
||||
if (model.credentialLibraryIds?.length || model.credentialIds?.length) {
|
||||
json.application_credential_source_ids = [
|
||||
json.brokered_credential_source_ids = [
|
||||
...model.credentialLibraryIds,
|
||||
...model.credentialIds,
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user