Skip to content

Commit 0eb9eec

Browse files
committed
Fix styling issues
1 parent 8d5490b commit 0eb9eec

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

api/src/discord/agile/commands/linkUser.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ export async function changeDiscordUserRoleForCTFByDiscordId(
6363
return true;
6464
}
6565

66-
async function linkUserLogic(_client: Client, interaction: ChatInputCommandInteraction) {
66+
async function linkUserLogic(
67+
_client: Client,
68+
interaction: ChatInputCommandInteraction
69+
) {
6770
const token = interaction.options.get("token", true).value as string;
6871

6972
const userId = await getUserByToken(token);
@@ -115,7 +118,10 @@ export const LinkUser: Command = {
115118
},
116119
],
117120
run: async (client, interaction) => {
118-
return linkUserLogic(client, interaction as ChatInputCommandInteraction).catch((e) => {
121+
return linkUserLogic(
122+
client,
123+
interaction as ChatInputCommandInteraction
124+
).catch((e) => {
119125
console.error("Error during link user logic: ", e);
120126
});
121127
},

api/src/discord/agile/commands/solveTask.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export async function handleTaskSolved(
4444
message?.react(emojis[Math.floor(Math.random() * emojis.length)].toString());
4545
}
4646

47-
async function solveTaskLogic(client: Client, interaction: ChatInputCommandInteraction) {
47+
async function solveTaskLogic(
48+
client: Client,
49+
interaction: ChatInputCommandInteraction
50+
) {
4851
const r = await getCurrentTaskChannelFromDiscord(interaction);
4952
if (r == null) return accessDenied(interaction);
5053

@@ -94,7 +97,10 @@ export const SolveTask: Command = {
9497
},
9598
],
9699
run: async (client, interaction) => {
97-
return solveTaskLogic(client, interaction as ChatInputCommandInteraction).catch((e) => {
100+
return solveTaskLogic(
101+
client,
102+
interaction as ChatInputCommandInteraction
103+
).catch((e) => {
98104
console.error("Error during solve task logic: ", e);
99105
});
100106
},

0 commit comments

Comments
 (0)