mirror of
https://github.com/Infisical/infisical.git
synced 2025-03-31 22:09:57 +00:00
chore: remove logs
This commit is contained in:
@ -604,14 +604,7 @@ export const registerDashboardRouter = async (server: FastifyZodProvider) => {
|
||||
tagSlugs: tags
|
||||
});
|
||||
|
||||
console.log("totalSecretCount", totalSecretCount);
|
||||
console.log("adjustedOffset", adjustedOffset);
|
||||
console.log("remainingLimit", remainingLimit);
|
||||
|
||||
console.log("will resolve to true", remainingLimit > 0 && totalSecretCount > adjustedOffset);
|
||||
|
||||
if (remainingLimit > 0 && totalSecretCount > adjustedOffset) {
|
||||
console.log("before running");
|
||||
const secretsRaw = await server.services.secret.getSecretsRaw({
|
||||
actorId: req.permission.id,
|
||||
actor: req.permission.type,
|
||||
@ -629,7 +622,6 @@ export const registerDashboardRouter = async (server: FastifyZodProvider) => {
|
||||
tagSlugs: tags
|
||||
});
|
||||
|
||||
console.log("secretsRaw", secretsRaw);
|
||||
secrets = secretsRaw.secrets;
|
||||
|
||||
await server.services.auditLog.createAuditLog({
|
||||
@ -662,7 +654,6 @@ export const registerDashboardRouter = async (server: FastifyZodProvider) => {
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
if (!(error instanceof ForbiddenError)) {
|
||||
throw error;
|
||||
}
|
||||
|
@ -77,8 +77,6 @@ export const registerLoginRouter = async (server: FastifyZodProvider) => {
|
||||
secure: cfg.HTTPS_ENABLED
|
||||
});
|
||||
|
||||
console.log("access token", tokens.access);
|
||||
|
||||
return { token: tokens.access, isMfaEnabled: false };
|
||||
}
|
||||
});
|
||||
|
@ -35,11 +35,6 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
|
||||
title,
|
||||
isDisabled
|
||||
}: Props<T>) => {
|
||||
if (subject === "secrets") {
|
||||
console.log("secret subject");
|
||||
console.log(actions);
|
||||
}
|
||||
|
||||
const { control } = useFormContext<TFormSchema>();
|
||||
const items = useFieldArray({
|
||||
control,
|
||||
@ -121,10 +116,6 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
|
||||
<div className="w-1/4">Actions</div>
|
||||
<div className="flex flex-grow flex-wrap justify-start gap-8">
|
||||
{actions.map(({ label, value }) => {
|
||||
if (subject === "secrets") {
|
||||
console.log("value", value);
|
||||
}
|
||||
|
||||
if (typeof value !== "string") return undefined;
|
||||
|
||||
return (
|
||||
@ -134,10 +125,6 @@ export const GeneralPermissionPolicies = <T extends keyof NonNullable<TFormSchem
|
||||
control={control}
|
||||
defaultValue={false}
|
||||
render={({ field }) => {
|
||||
if (subject === "secrets") {
|
||||
console.log("field", field);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex items-center justify-center">
|
||||
<Checkbox
|
||||
|
Reference in New Issue
Block a user