Skip to content

Commit

Permalink
chore: update send to discord
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 committed Jan 29, 2024
1 parent c68a21b commit 76d0a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions src/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,7 @@ export class Notification {
try {
const payload = await getPayloadDiscord(this.inputs);

// return axios.post(this.inputs.discord_webhook as string, payload);

return axios({
method: 'post',
url: this.inputs.discord_webhook as string,
headers: {
'Content-Type': 'multipart/form-data',
},
data: payload,
})
return axios.post(this.inputs.discord_webhook as string, payload);
} catch (e: any) {
if (e.response) {
logError(
Expand Down

0 comments on commit 76d0a85

Please sign in to comment.