Skip to content

Commit

Permalink
Revert "[Nest Bot] Add joined date to approval message"
Browse files Browse the repository at this point in the history
This reverts commit cb480b1.
  • Loading branch information
polypixeldev committed Jun 21, 2024
1 parent cb480b1 commit 3d7ddd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 2 additions & 3 deletions nest-bot/src/blocks/approval_message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ export default function approval_message(
username: string,
email: string,
ssh_key: string,
description: string,
joined: string
description: string
) {
return [
{
Expand All @@ -19,7 +18,7 @@ export default function approval_message(
type: "section",
text: {
type: "mrkdwn",
text: `*Full Name:*\n${name}\n*Username:*\n${username}\n*Email:* ${email}\n*SSH Public Key:* \`${ssh_key}\`\n*Description:* ${description}\n*Joined:* ${joined}`,
text: `*Full Name:*\n${name}\n*Username:*\n${username}\n*Email:* ${email}\n*SSH Public Key:* \`${ssh_key}\`\n*Description:* ${description}`,
},
},
{
Expand Down
8 changes: 1 addition & 7 deletions nest-bot/src/views/register_user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ export function register_user(app: Slack.App) {
},
});

const info = await client.users.info({
user: body.user.id,
});

await client.chat.postMessage({
channel: "C05VBD1B7V4", // private #nest-registration channel id
blocks: approval_message(
Expand All @@ -112,9 +108,7 @@ export function register_user(app: Slack.App) {
username,
email,
ssh_key,
description,
// @ts-expect-error
info.user?.profile?.start_date
description
),
text: `<@${body.user.id}> is requesting an approval for Nest`,
});
Expand Down

0 comments on commit 3d7ddd8

Please sign in to comment.