This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as admin from 'firebase-admin' | |
| import * as functions from 'firebase-functions' | |
| admin.initializeApp(functions.config().firebase) | |
| const db = admin.firestore() | |
| async function writeIntegerVersion(event) { | |
| const ref = event.data.ref | |
| if (ref.path.indexOf('/_versions/') >= 0) { | |
| return false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // No Security | |
| { | |
| "rules": { | |
| ".read": true, | |
| ".write": true | |
| } | |
| } |