Skip to content

Commit

Permalink
Merge branch 'patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebTheWizard committed Mar 1, 2024
2 parents d2e32a8 + 66aee38 commit 271d68d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion discord-commits/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const payload = {
};

try {
await fetch(`${webhook}?wait=true`, {
const webhookURL = new URL(webhook);
webhookURL.searchParams.set('wait','true');
await fetch(webhookURL.toString(), {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39198,7 +39198,9 @@ const payload = {
};

try {
await (0,node_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(`${webhook}?wait=true`, {
const webhookURL = new URL(webhook);
webhookURL.searchParams.set('wait','true');
await (0,node_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)(webhookURL.toString(), {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 271d68d

Please sign in to comment.