From e6aa41c6af1998ffa540a3ff3383c8bfa26ba8c4 Mon Sep 17 00:00:00 2001 From: Jose Mateo Date: Wed, 19 Dec 2018 14:54:49 -0800 Subject: [PATCH] Update database.rules.json Changing these around for clarity. --- stripe/database.rules.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stripe/database.rules.json b/stripe/database.rules.json index 25c63a2f00..ecd3485c51 100644 --- a/stripe/database.rules.json +++ b/stripe/database.rules.json @@ -4,14 +4,14 @@ "$uid": { ".read": "$uid === auth.uid", "sources": { - "$chargeId" : { + "$sourceId" : { ".write": "$uid === auth.uid", "token": { ".validate": "newData.isString()" }, "$other": { ".validate": false } } }, "charges": { - "$sourceId" : { + "$chargeId" : { ".write": "$uid === auth.uid", "source": { ".validate": "newData.isString()" }, "amount": { ".validate": "newData.isNumber()" },