fix allowPartialScopes flag

This commit is contained in:
Asier Isayas 2024-07-23 15:05:26 -04:00
parent 1e6c40eabf
commit c582738b40
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
export interface QueryRequestOptions { export interface QueryRequestOptions {
$skipToken?: string; $skipToken?: string;
$top?: number; $top?: number;
$allowPartialScopes: boolean; allowPartialScopes: boolean;
subscriptions?: string[]; subscriptions?: string[];
} }

View File

@ -52,7 +52,7 @@ export async function fetchSubscriptionsFromGraph(accessToken: string): Promise<
const body = { const body = {
query: subscriptionsQuery, query: subscriptionsQuery,
options: { options: {
$allowPartialScopes: true, allowPartialScopes: true,
$top: 150, $top: 150,
...(skipToken && { ...(skipToken && {
$skipToken: skipToken, $skipToken: skipToken,