From 92e5febdac721998ee97eaa514eb3d6f8c2f78d4 Mon Sep 17 00:00:00 2001 From: L4721 <l4721@student.jamk.fi> Date: Mon, 10 Jun 2019 08:01:05 +0300 Subject: [PATCH] Update mapmarker.service.ts --- src/mapmarkers/mapmarker.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapmarkers/mapmarker.service.ts b/src/mapmarkers/mapmarker.service.ts index 35abab5..9e01670 100644 --- a/src/mapmarkers/mapmarker.service.ts +++ b/src/mapmarkers/mapmarker.service.ts @@ -15,10 +15,10 @@ export class MapMarkerService { @InjectRepository(PersonEntity) private personRepository: Repository<PersonEntity> ) { } - // insert markersasd + // insert markers async insertLocation(personId: string, data: MapMarkerDTO) { try { - const asd = 2; + //get functions runtime as timestamp data.timestamp = new Date(Date.now()).toLocaleString(); //check from database for the user who uploads the data -- GitLab