Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ example: `"-JoJypAujT2z0qcWnYjW": true`

example: `false`

- isPremium [boolean]: has this radio channel been upgraded to premium
This property cannot be changed by the user. After paying the premium
fee, the Firebase functions backend will take care of switching it to `true`

example: `true`

- link [string]: URL describing the external homepage for a radio channel

example: `"https://example.com"`
Expand Down
3 changes: 3 additions & 0 deletions database.rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
"isFeatured": {
".validate": "newData.isBoolean() && (data.exists() && newData.val() === data.val() || newData.val() === false)"
},
"isPremium": {
".validate": "newData.isBoolean() && newData.val() === data.val()"
},
"link": {
".validate": "newData.isString() && newData.val().length < 150"
},
Expand Down