From b26dd70bbd844ab699424101390a4e83c0d42128 Mon Sep 17 00:00:00 2001 From: Tara Zou Date: Thu, 21 Mar 2024 15:15:33 -0400 Subject: [PATCH] fix format --- src/SelfServe/SqlX/SqlX.rp.ts | 6 +++++- src/SelfServe/SqlX/SqlX.tsx | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/SelfServe/SqlX/SqlX.rp.ts b/src/SelfServe/SqlX/SqlX.rp.ts index c53233517..02bbdffdf 100644 --- a/src/SelfServe/SqlX/SqlX.rp.ts +++ b/src/SelfServe/SqlX/SqlX.rp.ts @@ -33,7 +33,11 @@ export const getPath = (subscriptionId: string, resourceGroup: string, name: str return `/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.DocumentDB/databaseAccounts/${name}/services/SqlDedicatedGateway`; }; -export const updateDedicatedGatewayResource = async (sku: string, dedicatedGatewayType: string, instances: number): Promise => { +export const updateDedicatedGatewayResource = async ( + sku: string, + dedicatedGatewayType: string, + instances: number, +): Promise => { const path = getPath(userContext.subscriptionId, userContext.resourceGroup, userContext.databaseAccount.name); const body: UpdateDedicatedGatewayRequestParameters = { properties: { diff --git a/src/SelfServe/SqlX/SqlX.tsx b/src/SelfServe/SqlX/SqlX.tsx index 686499513..44265aa89 100644 --- a/src/SelfServe/SqlX/SqlX.tsx +++ b/src/SelfServe/SqlX/SqlX.tsx @@ -73,7 +73,10 @@ const onSKUChange = (newValue: InputType, currentValues: Map): Map => { +const onDedicatedGatewayTypeChange = ( + newValue: InputType, + currentValues: Map, +): Map => { currentValues.set("dedicatedGatewayType", { value: newValue }); return currentValues; }; @@ -202,7 +205,7 @@ const getSkus = async (): Promise => { const dedicatedGatewayTypeDropDownItems: ChoiceItem[] = [ { labelTKey: "Integrated Cache", key: IntegratedCache }, - { labelTKey: "Distributed Query", key: DistributedQuery } + { labelTKey: "Distributed Query", key: DistributedQuery }, ]; const getDedicatedGatewayType = async (): Promise => {