From 7c7e8e183d1bf50376ba5d4a51e636f7860a4303 Mon Sep 17 00:00:00 2001 From: polypixeldev <79737178+polypixeldev@users.noreply.github.com> Date: Tue, 17 Sep 2024 20:45:00 -0400 Subject: [PATCH] fix nest-bot ts errors --- nest-bot/src/util/populate_users.ts | 1 + nest-bot/src/views/edit_email.ts | 8 +------- nest-bot/src/views/edit_full_name.ts | 8 +------- nest-bot/src/views/edit_shell.ts | 8 +------- 4 files changed, 4 insertions(+), 21 deletions(-) diff --git a/nest-bot/src/util/populate_users.ts b/nest-bot/src/util/populate_users.ts index 78942c9..cc6b02d 100644 --- a/nest-bot/src/util/populate_users.ts +++ b/nest-bot/src/util/populate_users.ts @@ -37,6 +37,7 @@ export default async function populate_users() { tilde_username: user.username, description: "Added by populate_users function", is_approved: true, + ssh_public_key: "None", }, }); reqs.push(dbReq); diff --git a/nest-bot/src/views/edit_email.ts b/nest-bot/src/views/edit_email.ts index 7e61f87..57d410a 100644 --- a/nest-bot/src/views/edit_email.ts +++ b/nest-bot/src/views/edit_email.ts @@ -35,13 +35,7 @@ export function edit_email(app: Slack.App) { await client.views.publish({ user_id: body.user.id, - view: approved_home( - user.name!, - user.tilde_username, - user.email!, - user.ssh_public_key, - shell, - ), + view: approved_home(user.name!, user.tilde_username, user.email!, shell), }); }); } diff --git a/nest-bot/src/views/edit_full_name.ts b/nest-bot/src/views/edit_full_name.ts index d2f8967..14872c6 100644 --- a/nest-bot/src/views/edit_full_name.ts +++ b/nest-bot/src/views/edit_full_name.ts @@ -21,13 +21,7 @@ export function edit_full_name(app: Slack.App) { await client.views.publish({ user_id: body.user.id, - view: approved_home( - user.name!, - user.tilde_username, - user.email!, - user.ssh_public_key, - shell, - ), + view: approved_home(user.name!, user.tilde_username, user.email!, shell), }); }); } diff --git a/nest-bot/src/views/edit_shell.ts b/nest-bot/src/views/edit_shell.ts index 05c662c..4e54b05 100644 --- a/nest-bot/src/views/edit_shell.ts +++ b/nest-bot/src/views/edit_shell.ts @@ -76,13 +76,7 @@ export function edit_shell(app: Slack.App) { await client.views.publish({ user_id: body.user.id, - view: approved_home( - name!, - tilde_username!, - email!, - ssh_public_key!, - shell!, - ), + view: approved_home(name!, tilde_username!, email!, shell!), }); }); }