mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +00:00
Fix type issue
This commit is contained in:
@@ -577,6 +577,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
|
|||||||
|
|
||||||
workspaceId = workspace.id;
|
workspaceId = workspace.id;
|
||||||
}
|
}
|
||||||
|
if (!workspaceId) throw new BadRequestError({ message: "You must provide workspaceId or projectSlug" });
|
||||||
|
|
||||||
const secretOperation = await server.services.secret.createSecretRaw({
|
const secretOperation = await server.services.secret.createSecretRaw({
|
||||||
actorId: req.permission.id,
|
actorId: req.permission.id,
|
||||||
@@ -718,6 +719,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
|
|||||||
|
|
||||||
workspaceId = workspace.id;
|
workspaceId = workspace.id;
|
||||||
}
|
}
|
||||||
|
if (!workspaceId) throw new BadRequestError({ message: "You must provide workspaceId or projectSlug" });
|
||||||
|
|
||||||
const secretOperation = await server.services.secret.updateSecretRaw({
|
const secretOperation = await server.services.secret.updateSecretRaw({
|
||||||
actorId: req.permission.id,
|
actorId: req.permission.id,
|
||||||
actor: req.permission.type,
|
actor: req.permission.type,
|
||||||
@@ -838,6 +841,7 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {
|
|||||||
|
|
||||||
workspaceId = workspace.id;
|
workspaceId = workspace.id;
|
||||||
}
|
}
|
||||||
|
if (!workspaceId) throw new BadRequestError({ message: "You must provide workspaceId or projectSlug" });
|
||||||
|
|
||||||
const secretOperation = await server.services.secret.deleteSecretRaw({
|
const secretOperation = await server.services.secret.deleteSecretRaw({
|
||||||
actorId: req.permission.id,
|
actorId: req.permission.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user