refact(target): Change repository to take CredentialLibraries
This change removes the hard-coded credential purpose for the Credential Libraries. It also moves the logic of creating CredentialLibraries from CredentialSources out of the repository and into the targets.Service. This refactor will allow for additional credential purposes to be supported in both the service and the repository.
This commit is contained in:
20 files changed
+1213
-133
No files matched your search
@@ -13,7 +13,8 @@ current_libraries (library_id) as (
|
||||
-- returns the current list
|
||||
select credential_library_id
|
||||
from target_credential_library
|
||||
where target_id = @target_id
|
||||
where target_id = @target_id
|
||||
and credential_purpose = @purpose
|
||||
),
|
||||
keep_libraries (library_id) as (
|
||||
-- returns the KEEP list
|
||||
|
||||
Reference in new issue
Block a user