Commit a587acd43faa52c88661d8b0117961e6e7b57456
Exists in
master
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-seguimiento!2
Showing
1 changed file
 
Show diff stats
src/js/service.js
| ... | ... | @@ -3,12 +3,13 @@ angular.module('focaSeguimiento') | 
| 3 | 3 | '$http', 'API_ENDPOINT', 'cordovaGeolocationService', | 
| 4 | 4 | function($http, API_ENDPOINT, cordovaGeolocationService) { | 
| 5 | 5 | return { | 
| 6 | - guardarPosicion: function(actividad, observaciones) { | |
| 6 | + guardarPosicion: function(idUsuario, actividad, observaciones) { | |
| 7 | 7 | cordovaGeolocationService.getCurrentPosition(function(posicion) { | 
| 8 | 8 | var nuevaPosicion = { | 
| 9 | 9 | posicion: { | 
| 10 | 10 | latitud: posicion.coords.latitude, | 
| 11 | 11 | longitud: posicion.coords.longitude, | 
| 12 | + idUsuario: idUsuario, | |
| 12 | 13 | actividad: actividad, | 
| 13 | 14 | observaciones: observaciones | 
| 14 | 15 | } |