From b44ec6572e90c727209eb7f080080144eacedeca Mon Sep 17 00:00:00 2001 From: Alexis Feron Date: Wed, 29 Jan 2025 16:43:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=EF=B8=8F=20Fix=20add=20pin=20assig?= =?UTF-8?q?n=20by=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/services/add-pin.service.ts | 2 ++ 1 file changed, 2 insertions(+) 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 } );