mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
Use SDK for reading database offer for Tables API (#226)
This commit is contained in:
parent
666a378b3b
commit
28ceb18d73
@ -16,7 +16,11 @@ export const readDatabaseOffer = async (
|
|||||||
): Promise<DataModels.OfferWithHeaders> => {
|
): Promise<DataModels.OfferWithHeaders> => {
|
||||||
let offerId = params.offerId;
|
let offerId = params.offerId;
|
||||||
if (!offerId) {
|
if (!offerId) {
|
||||||
if (window.authType === AuthType.AAD && !userContext.useSDKOperations) {
|
if (
|
||||||
|
window.authType === AuthType.AAD &&
|
||||||
|
!userContext.useSDKOperations &&
|
||||||
|
userContext.defaultExperience !== DefaultAccountExperienceType.Table
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
offerId = await getDatabaseOfferIdWithARM(params.databaseId);
|
offerId = await getDatabaseOfferIdWithARM(params.databaseId);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user