Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vikhyat187 committed Oct 29, 2024
1 parent 89a8350 commit fddc63a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/awsAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function processAWSAccessRequest(
} else {
content = `AWS access granted successfully <@${discordUserId}>! Please head over to AWS - ${AWS_IAM_SIGNIN_URL}.`;
}
return await fetch(`${DISCORD_BASE_URL}/channels/${channelId}/messages`, {
return fetch(`${DISCORD_BASE_URL}/channels/${channelId}/messages`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand All @@ -54,7 +54,7 @@ export async function processAWSAccessRequest(
});
} catch (err) {
const content = `<@${discordUserId}> Error occurred while granting AWS access.`;
return await fetch(`${DISCORD_BASE_URL}/channels/${channelId}/messages`, {
return fetch(`${DISCORD_BASE_URL}/channels/${channelId}/messages`, {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit fddc63a

Please sign in to comment.