Commit from GitHub Actions (Lint)

This commit is contained in:
itohatweb
2021-05-11 17:40:35 +00:00
parent be3283ba60
commit 0dff29735b

View File

@@ -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,
}
},
);
});
}