mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-27 13:44:12 +00:00
Fix lint & typescript checks
This commit is contained in:
@@ -11,7 +11,10 @@ interface AccountListResult {
|
||||
value: DatabaseAccount[];
|
||||
}
|
||||
|
||||
export async function fetchDatabaseAccounts(subscriptionId: string, accessToken: string = ""): Promise<DatabaseAccount[]> {
|
||||
export async function fetchDatabaseAccounts(
|
||||
subscriptionId: string,
|
||||
accessToken: string = "",
|
||||
): Promise<DatabaseAccount[]> {
|
||||
if (!accessToken && !userContext.authorizationToken) {
|
||||
return [];
|
||||
}
|
||||
@@ -61,15 +64,15 @@ export async function fetchDatabaseAccountsFromGraph(
|
||||
subscriptions: [subscriptionId],
|
||||
...(skipToken
|
||||
? {
|
||||
options: {
|
||||
$skipToken: skipToken,
|
||||
} as QueryRequestOptions,
|
||||
}
|
||||
options: {
|
||||
$skipToken: skipToken,
|
||||
} as QueryRequestOptions,
|
||||
}
|
||||
: {
|
||||
options: {
|
||||
$top: 150,
|
||||
} as QueryRequestOptions,
|
||||
}),
|
||||
options: {
|
||||
$top: 150,
|
||||
} as QueryRequestOptions,
|
||||
}),
|
||||
};
|
||||
|
||||
const response = await fetch(managementResourceGraphAPIURL, {
|
||||
|
||||
Reference in New Issue
Block a user