i also forgot to change the request method
This commit is contained in:
parent
2a8af5667a
commit
276a6ea313
1 changed files with 0 additions and 5 deletions
5
index.ts
5
index.ts
|
@ -24,11 +24,6 @@ const eligibilityCmd = async (ctx: any) => {
|
||||||
|
|
||||||
|
|
||||||
const res = await fetch("https://identity.hackclub.com/api/external/check?slack_id" + userId, {
|
const res = await fetch("https://identity.hackclub.com/api/external/check?slack_id" + userId, {
|
||||||
method: "POST",
|
|
||||||
headers: { 'content-type': 'application/json' },
|
|
||||||
body: JSON.stringify({
|
|
||||||
"slack_id": userId
|
|
||||||
}),
|
|
||||||
redirect: "follow"
|
redirect: "follow"
|
||||||
}).then(res => res.json())
|
}).then(res => res.json())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue