mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 09:35:37 +00:00
Add description to PKI collection
This commit is contained in:
@@ -40,6 +40,7 @@ export const pkiCollectionServiceFactory = ({
|
||||
}: TPkiCollectionServiceFactoryDep) => {
|
||||
const createPkiCollection = async ({
|
||||
name,
|
||||
description,
|
||||
projectId,
|
||||
actorId,
|
||||
actorAuthMethod,
|
||||
@@ -61,7 +62,8 @@ export const pkiCollectionServiceFactory = ({
|
||||
|
||||
const pkiCollection = await pkiCollectionDAL.create({
|
||||
projectId,
|
||||
name
|
||||
name,
|
||||
description
|
||||
});
|
||||
|
||||
return pkiCollection;
|
||||
@@ -92,6 +94,7 @@ export const pkiCollectionServiceFactory = ({
|
||||
const updatePkiCollection = async ({
|
||||
collectionId,
|
||||
name,
|
||||
description,
|
||||
actorId,
|
||||
actorAuthMethod,
|
||||
actor,
|
||||
@@ -110,7 +113,8 @@ export const pkiCollectionServiceFactory = ({
|
||||
|
||||
ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionActions.Edit, ProjectPermissionSub.PkiCollections);
|
||||
pkiCollection = await pkiCollectionDAL.updateById(collectionId, {
|
||||
name
|
||||
name,
|
||||
description
|
||||
});
|
||||
|
||||
return pkiCollection;
|
||||
|
||||
Reference in New Issue
Block a user