mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 02:42:26 +00:00
move const await to async
This commit is contained in:
parent
94e4e9300b
commit
2a4b74bbec
1 changed files with 3 additions and 3 deletions
|
|
@ -51,10 +51,7 @@ const getBaseUrl = async (): Promise<string> => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const BASE_URL = await getBaseUrl();
|
|
||||||
|
|
||||||
const testUrl = "https://postman-echo.com/get";
|
const testUrl = "https://postman-echo.com/get";
|
||||||
const febboxApiTestUrl = `${BASE_URL}/movie/tt13654226`;
|
|
||||||
|
|
||||||
const sleep = (ms: number): Promise<void> => {
|
const sleep = (ms: number): Promise<void> => {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
|
|
@ -88,6 +85,9 @@ function testProxy(url: string) {
|
||||||
export async function testFebboxToken(
|
export async function testFebboxToken(
|
||||||
febboxToken: string | null,
|
febboxToken: string | null,
|
||||||
): Promise<Status> {
|
): Promise<Status> {
|
||||||
|
const BASE_URL = await getBaseUrl();
|
||||||
|
const febboxApiTestUrl = `${BASE_URL}/movie/tt13654226`;
|
||||||
|
|
||||||
if (!febboxToken) {
|
if (!febboxToken) {
|
||||||
return "unset";
|
return "unset";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue