mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
Commit from GitHub Actions (Lint)
This commit is contained in:
@@ -9,7 +9,7 @@ export async function runMethod<T = any>(
|
||||
url: string,
|
||||
body?: unknown,
|
||||
retryCount = 0,
|
||||
bucketId?: string
|
||||
bucketId?: string,
|
||||
): Promise<T> {
|
||||
if (body) {
|
||||
body = loopObject(
|
||||
@@ -20,7 +20,7 @@ export async function runMethod<T = any>(
|
||||
: Array.isArray(value)
|
||||
? value.map((v) => (typeof v === "bigint" ? v.toString() : v))
|
||||
: value,
|
||||
`Running forEach loop in runMethod function for changing bigints to strings.`
|
||||
`Running forEach loop in runMethod function for changing bigints to strings.`,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -65,14 +65,14 @@ export async function runMethod<T = any>(
|
||||
resolve(
|
||||
data.status !== 204
|
||||
? camelize<T>(JSON.parse(data.body ?? "{}"))
|
||||
: ((undefined as unknown) as T)
|
||||
: ((undefined as unknown) as T),
|
||||
),
|
||||
},
|
||||
{
|
||||
bucketId,
|
||||
body: body as Record<string, unknown> | undefined,
|
||||
retryCount,
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user