diff --git a/functions/src/index.ts b/functions/src/index.ts index 4dce3c8..ca519f6 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -423,7 +423,7 @@ export const createCashfreeOrder = onRequest({ customer_phone: customerPhone }, order_meta: { - return_url: `http://${webHostUrl}/?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, + return_url: `http://${webHostUrl}?order_id=${orderId}&hash_key=${hashKey}&user_id=${userId}&gym_id=${gymId}#/payment-status-screen`, }, order_note: productInfo || 'Fitlien Membership' }, diff --git a/storage.rules b/storage.rules index f08744f..fbb489a 100644 --- a/storage.rules +++ b/storage.rules @@ -1,12 +1,9 @@ rules_version = '2'; -// Craft rules based on data in your Firestore database -// allow write: if firestore.get( -// /databases/(default)/documents/users/$(request.auth.uid)).data.isAdmin; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { - allow read, write: if false; + allow read, write: if request.auth != null; } } -} +} \ No newline at end of file