diff --git a/src/app/services/add-pin.service.ts b/src/app/services/add-pin.service.ts index ff09456..e1705e4 100644 --- a/src/app/services/add-pin.service.ts +++ b/src/app/services/add-pin.service.ts @@ -29,6 +29,7 @@ export class AddPinService { return this.autoCompleteService.getAdressCoordinates(pin.location).pipe( switchMap((response: any) => { const coords: [string, string] = [response[0].lat, response[0].lon]; + const user_id = localStorage.getItem('auth_token'); return this.http.post( url, { @@ -36,6 +37,7 @@ export class AddPinService { description: pin.description, location: coords, files: pin.files, + user_id: user_id, }, { headers } );