enh
This commit is contained in:
parent
6a7f0a2243
commit
88985c9572
5 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# DATABASE_URL=postgresql://postgres:postgres_shafi_password@57.128.212.174:6432/meatfarmer #technocracy
|
# DATABASE_URL=postgresql://postgres:postgres_shafi_password@57.128.212.174:6432/meatfarmer #technocracy
|
||||||
DATABASE_URL=postgres://postgres:postgres_shafi_password@5.223.55.14:6432/meatfarmer #hetzner
|
DATABASE_URL=postgres://postgres:meatfarmer_master_password@5.223.55.14:7447/meatfarmer #hetzner
|
||||||
PHONE_PE_BASE_URL=https://api-preprod.phonepe.com/
|
PHONE_PE_BASE_URL=https://api-preprod.phonepe.com/
|
||||||
PHONE_PE_CLIENT_ID=TEST-M23F2IGP34ZAR_25090
|
PHONE_PE_CLIENT_ID=TEST-M23F2IGP34ZAR_25090
|
||||||
PHONE_PE_CLIENT_VERSION=1
|
PHONE_PE_CLIENT_VERSION=1
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -14,6 +14,7 @@ interface SlotWithProducts {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
shortDescription: string | null;
|
shortDescription: string | null;
|
||||||
|
productQuantity: number;
|
||||||
price: string;
|
price: string;
|
||||||
marketPrice: string | null;
|
marketPrice: string | null;
|
||||||
unit: string | null;
|
unit: string | null;
|
||||||
|
|
@ -68,6 +69,7 @@ export async function initializeSlotStore(): Promise<void> {
|
||||||
slot.productSlots.map(async (productSlot) => ({
|
slot.productSlots.map(async (productSlot) => ({
|
||||||
id: productSlot.product.id,
|
id: productSlot.product.id,
|
||||||
name: productSlot.product.name,
|
name: productSlot.product.name,
|
||||||
|
productQuantity: productSlot.product.productQuantity,
|
||||||
shortDescription: productSlot.product.shortDescription,
|
shortDescription: productSlot.product.shortDescription,
|
||||||
price: productSlot.product.price.toString(),
|
price: productSlot.product.price.toString(),
|
||||||
marketPrice: productSlot.product.marketPrice?.toString() || null,
|
marketPrice: productSlot.product.marketPrice?.toString() || null,
|
||||||
|
|
|
||||||
|
|
@ -394,6 +394,8 @@ export function SlotProducts({ slotId:slotIdParent, storeId:storeIdParent, baseU
|
||||||
|
|
||||||
const filteredProducts: any[] = storeIdNum ? productsQuery?.data?.filter(p => p.store?.id === storeIdNum) || [] : slotQuery.data.products;
|
const filteredProducts: any[] = storeIdNum ? productsQuery?.data?.filter(p => p.store?.id === storeIdNum) || [] : slotQuery.data.products;
|
||||||
|
|
||||||
|
console.log({filteredProducts})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={tw`flex-1`}>
|
<View style={tw`flex-1`}>
|
||||||
<MyFlatList
|
<MyFlatList
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ const isDevMode = Constants.executionEnvironment !== "standalone";
|
||||||
// const BASE_API_URL = 'http://192.168.1.14:4000';
|
// const BASE_API_URL = 'http://192.168.1.14:4000';
|
||||||
let BASE_API_URL = "https://mf.freshyo.in";
|
let BASE_API_URL = "https://mf.freshyo.in";
|
||||||
// let BASE_API_URL = 'http://192.168.100.103:4000';
|
// let BASE_API_URL = 'http://192.168.100.103:4000';
|
||||||
// let BASE_API_URL = 'http://192.168.29.219:4000';
|
// let BASE_API_URL = 'http://192.168.29.176:4000';
|
||||||
|
|
||||||
// if(isDevMode) {
|
// if(isDevMode) {
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue