misc: updated missing tx

This commit is contained in:
Sheen Capadngan
2025-04-12 02:02:41 +08:00
parent d97057b43b
commit 8a870131e9
2 changed files with 28 additions and 8 deletions
@@ -193,6 +193,11 @@ export const dynamicSecretLeaseServiceFactory = ({
folderId: folder.id
});
if (!dynamicSecretCfg)
throw new NotFoundError({
message: `Dynamic secret with ID '${dynamicSecretLease.dynamicSecretId}' not found`
});
ForbiddenError.from(permission).throwUnlessCan(
ProjectPermissionDynamicSecretActions.Lease,
subject(ProjectPermissionSub.DynamicSecrets, {
@@ -274,6 +279,11 @@ export const dynamicSecretLeaseServiceFactory = ({
folderId: folder.id
});
if (!dynamicSecretCfg)
throw new NotFoundError({
message: `Dynamic secret with ID '${dynamicSecretLease.dynamicSecretId}' not found`
});
ForbiddenError.from(permission).throwUnlessCan(
ProjectPermissionDynamicSecretActions.Lease,
subject(ProjectPermissionSub.DynamicSecrets, {
@@ -393,6 +403,11 @@ export const dynamicSecretLeaseServiceFactory = ({
folderId: folder.id
});
if (!dynamicSecretCfg)
throw new NotFoundError({
message: `Dynamic secret with ID '${dynamicSecretLease.dynamicSecretId}' not found`
});
ForbiddenError.from(permission).throwUnlessCan(
ProjectPermissionDynamicSecretActions.Lease,
subject(ProjectPermissionSub.DynamicSecrets, {