Skip to content

Commit

Permalink
Rename registration logic function to match command name
Browse files Browse the repository at this point in the history
  • Loading branch information
daanbreur committed Aug 4, 2024
1 parent 0644256 commit d5053c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/discord/commands/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function getProfileUrl() {
return `http${ssl}://${config.pad.domain}/#/user/settings`;
}

async function createAccountLogic(
async function registerLogic(
client: Client,
interaction: CommandInteraction
) {
Expand Down Expand Up @@ -123,7 +123,7 @@ export const Register: Command = {
description: "Create an account on CTFNote (if enabled)!",
type: ApplicationCommandType.ChatInput,
run: async (client, interaction) => {
return createAccountLogic(client, interaction).catch((e) => {
return registerLogic(client, interaction).catch((e) => {
console.error("Error during /register Discord logic: ", e);
});
},
Expand Down

0 comments on commit d5053c2

Please sign in to comment.