mirror of
https://github.com/p-stream/p-stream.git
synced 2026-01-11 20:10:32 +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 febboxApiTestUrl = `${BASE_URL}/movie/tt13654226`;
|
||||
|
||||
const sleep = (ms: number): Promise<void> => {
|
||||
return new Promise((resolve) => {
|
||||
|
|
@ -88,6 +85,9 @@ function testProxy(url: string) {
|
|||
export async function testFebboxToken(
|
||||
febboxToken: string | null,
|
||||
): Promise<Status> {
|
||||
const BASE_URL = await getBaseUrl();
|
||||
const febboxApiTestUrl = `${BASE_URL}/movie/tt13654226`;
|
||||
|
||||
if (!febboxToken) {
|
||||
return "unset";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue