diff --git a/apps/backend/src/trpc/apis/common-apis/common-trpc-index.ts b/apps/backend/src/trpc/apis/common-apis/common-trpc-index.ts index bd2dafa..b477b30 100644 --- a/apps/backend/src/trpc/apis/common-apis/common-trpc-index.ts +++ b/apps/backend/src/trpc/apis/common-apis/common-trpc-index.ts @@ -16,23 +16,26 @@ const polygon = turf.polygon(mbnrGeoJson.features[0].geometry.coordinates); export async function scaffoldEssentialConsts() { const consts = await getAllConstValues(); - return { - freeDeliveryThreshold: consts[CONST_KEYS.freeDeliveryThreshold] ?? 200, - deliveryCharge: consts[CONST_KEYS.deliveryCharge] ?? 0, - flashFreeDeliveryThreshold: consts[CONST_KEYS.flashFreeDeliveryThreshold] ?? 500, - flashDeliveryCharge: consts[CONST_KEYS.flashDeliveryCharge] ?? 69, - popularItems: consts[CONST_KEYS.popularItems] ?? '5,3,2,4,1', - versionNum: consts[CONST_KEYS.versionNum] ?? '1.1.0', - playStoreUrl: consts[CONST_KEYS.playStoreUrl] ?? 'https://play.google.com/store/apps/details?id=in.freshyo.app', - appStoreUrl: consts[CONST_KEYS.appStoreUrl] ?? 'https://apps.apple.com/in/app/freshyo/id6756889077', - webViewHtml: null, - isWebviewClosable: true, - isFlashDeliveryEnabled: consts[CONST_KEYS.isFlashDeliveryEnabled] ?? true, - supportMobile: consts[CONST_KEYS.supportMobile] ?? '', - supportEmail: consts[CONST_KEYS.supportEmail] ?? '', - assetsDomain, - apiCacheKey, - }; + + return { + freeDeliveryThreshold: consts[CONST_KEYS.freeDeliveryThreshold] ?? 200, + deliveryCharge: consts[CONST_KEYS.deliveryCharge] ?? 0, + flashFreeDeliveryThreshold: consts[CONST_KEYS.flashFreeDeliveryThreshold] ?? 500, + flashDeliveryCharge: consts[CONST_KEYS.flashDeliveryCharge] ?? 69, + popularItems: consts[CONST_KEYS.popularItems] ?? '5,3,2,4,1', + versionNum: consts[CONST_KEYS.versionNum] ?? '1.1.0', + playStoreUrl: consts[CONST_KEYS.playStoreUrl] ?? 'https://play.google.com/store/apps/details?id=in.freshyo.app', + appStoreUrl: consts[CONST_KEYS.appStoreUrl] ?? 'https://apps.apple.com/in/app/freshyo/id6756889077', + webviewHtml: `