This commit is contained in:
Saahil 2024-12-01 22:34:26 -05:00
parent c6b83052a0
commit 6d42fcfb6f
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6
3 changed files with 11 additions and 0 deletions

View file

@ -15,6 +15,7 @@
"cheerio": "^1.0.0",
"dotenv": "^16.4.5",
"eventsource": "latest",
"form-data": "^4.0.1",
"ms": "^2.1.3",
"node-cron": "^3.0.3",
"node-ical": "^0.20.1",

View file

@ -73,6 +73,7 @@ export default class Message implements Command {
Embed: "true",
"No-JSON": "true",
"Expires-At": "7d",
...form.getHeaders(), // This will include the correct 'Content-Type' header with boundary
},
body: formData,
// send the file as a multipart/form-data

View file

@ -1800,6 +1800,15 @@ form-data@^4.0.0:
combined-stream "^1.0.8"
mime-types "^2.1.12"
form-data@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48"
integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==
dependencies:
asynckit "^0.4.0"
combined-stream "^1.0.8"
mime-types "^2.1.12"
formdata-node@^4.3.2:
version "4.4.1"
resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-4.4.1.tgz#23f6a5cb9cb55315912cbec4ff7b0f59bbd191e2"