Commit 85d54cca49003307c08b55f2c2454b5564419ec6

Authored by Nicolás Guarnieri
1 parent 1142e6bf02
Exists in master and in 1 other branch develop

refactor seguimiento

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
... ... @@ -3,18 +3,18 @@ angular.module('focaSeguimiento')
3 3 '$http', 'API_ENDPOINT', 'cordovaGeolocationService',
4 4 function($http, API_ENDPOINT, cordovaGeolocationService) {
5 5 return {
6   - guardarPosicion: function(idUsuario, actividad, observaciones, sucursal) {
  6 + guardarPosicion: function(actividad, idComprobante, 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,
13   - sucursal: sucursal,
  12 + idComprobante: idComprobante,
14 13 actividad: actividad,
15 14 observaciones: observaciones
16 15 }
17 16 };
  17 +
18 18 console.info(nuevaPosicion);
19 19 return $http.post(API_ENDPOINT.URL + '/seguimiento', nuevaPosicion);
20 20 });