From cbebf4c32cb14cea8f43c2711e011aed79b97634 Mon Sep 17 00:00:00 2001 From: Samuli Virtapohja <l4721@student.jamk.fi> Date: Fri, 7 Jun 2019 12:50:29 +0300 Subject: [PATCH] references to dist removed --- src/mapmarkers/mapmarker.service.ts | 2 +- src/mapmarkers/mapmarkers.controller.ts | 4 ++-- src/user/user.entity.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mapmarkers/mapmarker.service.ts b/src/mapmarkers/mapmarker.service.ts index c47ddf0..b0abf86 100644 --- a/src/mapmarkers/mapmarker.service.ts +++ b/src/mapmarkers/mapmarker.service.ts @@ -4,7 +4,7 @@ import { InjectRepository } from "@nestjs/typeorm"; import { MapMarkerEntity } from './mapmarker.entity'; import { MapMarkerDTO } from './mapmarker.dto'; -import { PersonEntity } from 'dist/user/user.entity'; +import { PersonEntity } from '../user/user.entity'; import { userInfo } from 'os'; @Injectable() diff --git a/src/mapmarkers/mapmarkers.controller.ts b/src/mapmarkers/mapmarkers.controller.ts index 6aa89c9..bb101e1 100644 --- a/src/mapmarkers/mapmarkers.controller.ts +++ b/src/mapmarkers/mapmarkers.controller.ts @@ -2,13 +2,13 @@ import { Controller, Body, Get, Put, UseGuards } from '@nestjs/common'; import { MapMarkerService } from './mapmarker.service'; import { MapMarkerDTO } from './mapmarker.dto'; -import { AuthGuard } from 'dist/shared/auth.guard'; +import { AuthGuard } from '../shared/auth.guard'; import { User } from 'src/user/user.decorator'; @Controller('mapmarkers') export class MapMarkersController { constructor(private mapmarkerservice: MapMarkerService){} - + //asd // Insert figure location, needs "authorization" header with valid Bearer token and content-type json @Put('insertLocation') @UseGuards(new AuthGuard()) diff --git a/src/user/user.entity.ts b/src/user/user.entity.ts index e718ce4..616da00 100644 --- a/src/user/user.entity.ts +++ b/src/user/user.entity.ts @@ -1,7 +1,7 @@ import { Entity, Column, PrimaryGeneratedColumn, BeforeInsert, OneToMany } from 'typeorm'; import * as bcrypt from 'bcryptjs'; import * as jwt from 'jsonwebtoken'; -import { MapMarkerEntity } from 'src/mapmarkers/mapmarker.entity'; +import { MapMarkerEntity } from '../mapmarkers/mapmarker.entity'; @Entity('Person') export class PersonEntity { -- GitLab