mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: remove logs
This commit is contained in:
@@ -225,7 +225,6 @@ export const accessApprovalRequestServiceFactory = ({
|
||||
const requesterFullName = `${requestedByUser.firstName} ${requestedByUser.lastName}`;
|
||||
const approvalUrl = `${cfg.SITE_URL}/secret-manager/${project.id}/approval`;
|
||||
|
||||
console.log("triggering workflow integration notification");
|
||||
await triggerWorkflowIntegrationNotification({
|
||||
input: {
|
||||
notification: {
|
||||
|
||||
@@ -49,15 +49,11 @@ export const triggerWorkflowIntegrationNotification = async (dto: TTriggerWorkfl
|
||||
}
|
||||
}
|
||||
|
||||
console.log("microsoftTeamsConfig", microsoftTeamsConfig);
|
||||
if (microsoftTeamsConfig) {
|
||||
if (notification.type === TriggerFeature.ACCESS_REQUEST) {
|
||||
if (microsoftTeamsConfig.isAccessRequestNotificationEnabled && microsoftTeamsConfig.accessRequestChannels) {
|
||||
const { success, data } = MicrosoftTeamsChannelsSchema.safeParse(microsoftTeamsConfig.accessRequestChannels);
|
||||
|
||||
console.log("success", success);
|
||||
console.log("data", data);
|
||||
|
||||
if (success && data) {
|
||||
await microsoftTeamsService
|
||||
.sendNotification({
|
||||
|
||||
@@ -303,9 +303,7 @@ export class TeamsBot extends TeamsActivityHandler {
|
||||
}
|
||||
|
||||
async run(context: TurnContext) {
|
||||
console.log("Running Microsoft Teams bot", {
|
||||
context
|
||||
});
|
||||
logger.info(context, "Processing Microsoft Teams context");
|
||||
await super.run(context);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,8 +51,6 @@ export const MicrosoftTeamsConfigRow = ({ handlePopUpOpen }: Props) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log("after");
|
||||
|
||||
return (
|
||||
<Tr>
|
||||
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
|
||||
|
||||
@@ -162,9 +162,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => {
|
||||
const selectedAccessRequestTeamId = watch("accessRequestChannels.teamId");
|
||||
const selectedSecretRequestTeamId = watch("secretRequestChannels.teamId");
|
||||
|
||||
console.log("selectedAccessRequestTeamId", selectedAccessRequestTeamId);
|
||||
console.log("selectedSecretRequestTeamId", selectedSecretRequestTeamId);
|
||||
|
||||
const selectedMicrosoftTeamsIntegrationId = watch("microsoftTeamsIntegrationId");
|
||||
|
||||
const accessRequestNotificationsEnabled = watch("isAccessRequestNotificationEnabled");
|
||||
@@ -188,9 +185,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => {
|
||||
.map((team) => team.channels)
|
||||
.flat();
|
||||
|
||||
console.log("selectableAccessRequestChannelIds", selectableAccessRequestChannelIds);
|
||||
console.log("selectableSecretRequestChannelIds", selectableSecretRequestChannelIds);
|
||||
|
||||
const channelIdToName = [
|
||||
...(selectableAccessRequestChannelIds || []),
|
||||
...(selectableSecretRequestChannelIds || [])
|
||||
|
||||
@@ -47,8 +47,6 @@ export const SlackConfigRow = ({ handlePopUpOpen }: Props) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log("after slakc");
|
||||
|
||||
return (
|
||||
<Tr>
|
||||
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
|
||||
|
||||
@@ -166,7 +166,6 @@ export const SlackIntegrationForm = ({ onClose }: Props) => {
|
||||
isDisabled={!isAllowed}
|
||||
placeholder="None"
|
||||
onValueChange={(val) => {
|
||||
console.log("Selecting ", val);
|
||||
onChange(val);
|
||||
}}
|
||||
className="w-full"
|
||||
|
||||
Reference in New Issue
Block a user