Skip to content
This repository was archived by the owner on Mar 2, 2021. It is now read-only.

Commit 29a4974

Browse files
author
Hugo Vieilledent
committed
add coordinate rules
1 parent 197dc3f commit 29a4974

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

database.rules.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@
143143
".validate": "root.child('images').hasChild($image) && root.child('images').child($image).child('channel').val() === $channelID"
144144
}
145145
},
146+
"coordinatesLongitude": {
147+
".validate": "newData.isNumber()"
148+
},
149+
"coordinatesLatitude": {
150+
".validate": "newData.isNumber()"
151+
},
146152
"$other": {
147153
".validate": false
148154
}

0 commit comments

Comments
 (0)