🔒️ Fix add pin assign by user

navbar
Alexis Feron 3 months ago
parent 8618b50e67
commit b44ec6572e

@ -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<any>(
url,
{
@ -36,6 +37,7 @@ export class AddPinService {
description: pin.description,
location: coords,
files: pin.files,
user_id: user_id,
},
{ headers }
);

Loading…
Cancel
Save