Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var db = firebase.firestore();
- function setVote(vals) {
- db
- .collection("polls")
- .doc("votes")
- .set(vals)
- .then(function(result) {
- alert(result);
- });
- }
- setVote({
- IPs: [
- { ip: "<?php echo $ip->address; ?>" }
- ],
- manzana: +2
- });
Add Comment
Please, Sign In to add comment