Skip to content

Commit

Permalink
fix nest-bot ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
polypixeldev committed Sep 18, 2024
1 parent acb5c9c commit 7c7e8e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
1 change: 1 addition & 0 deletions nest-bot/src/util/populate_users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 1 addition & 7 deletions nest-bot/src/views/edit_email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
});
}
8 changes: 1 addition & 7 deletions nest-bot/src/views/edit_full_name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
});
});
}
8 changes: 1 addition & 7 deletions nest-bot/src/views/edit_shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!),
});
});
}

0 comments on commit 7c7e8e1

Please sign in to comment.