body() -> text()
This commit is contained in:
parent
359acbf385
commit
9ce8d2eb0e
|
@ -19,14 +19,14 @@
|
|||
|
||||
const r2 = await fetch(`/api/v1/server/${id}/invites`);
|
||||
if (r2.ok) {
|
||||
const a = await r2.body();
|
||||
const a = await r2.text();
|
||||
if (a != "null") {
|
||||
invites = await r2.json();
|
||||
}
|
||||
for (let invite in invites) {
|
||||
const logsReq = await fetch(`/api/v1/invite/${invites[invite].token}/log`)
|
||||
if (logsReq.ok) {
|
||||
const b = await logsReq.body();
|
||||
const b = await logsReq.text();
|
||||
if (b != "null") {
|
||||
invites[invite]["log"] = await logsReq.json()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue