fix: remove logs

This commit is contained in:
Daniel Hougaard
2025-04-25 04:37:22 +04:00
parent b5d229a7c5
commit 0de15bf70c
7 changed files with 1 additions and 19 deletions

View File

@@ -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: {

View File

@@ -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({

View File

@@ -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);
}

View File

@@ -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">

View File

@@ -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 || [])

View File

@@ -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">

View File

@@ -166,7 +166,6 @@ export const SlackIntegrationForm = ({ onClose }: Props) => {
isDisabled={!isAllowed}
placeholder="None"
onValueChange={(val) => {
console.log("Selecting ", val);
onChange(val);
}}
className="w-full"