From 4a275bb59247b13dd4f3882fa199083244263ddb Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Wed, 24 May 2023 20:57:55 +0200 Subject: [PATCH] Sort imports --- apps/api/src/app/benchmark/benchmark.controller.ts | 9 +++++---- apps/api/src/app/benchmark/benchmark.module.ts | 2 +- apps/api/src/app/benchmark/benchmark.service.ts | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/api/src/app/benchmark/benchmark.controller.ts b/apps/api/src/app/benchmark/benchmark.controller.ts index 862e8442d..168611428 100644 --- a/apps/api/src/app/benchmark/benchmark.controller.ts +++ b/apps/api/src/app/benchmark/benchmark.controller.ts @@ -5,6 +5,8 @@ import { BenchmarkResponse, UniqueAsset } from '@ghostfolio/common/interfaces'; +import { hasPermission, permissions } from '@ghostfolio/common/permissions'; +import { RequestWithUser } from '@ghostfolio/common/types'; import { Body, Controller, @@ -16,14 +18,13 @@ import { UseGuards, UseInterceptors } from '@nestjs/common'; +import { REQUEST } from '@nestjs/core'; import { AuthGuard } from '@nestjs/passport'; import { DataSource } from '@prisma/client'; -import { hasPermission, permissions } from '@ghostfolio/common/permissions'; -import { BenchmarkService } from './benchmark.service'; -import { REQUEST } from '@nestjs/core'; -import { RequestWithUser } from '@ghostfolio/common/types'; import { StatusCodes, getReasonPhrase } from 'http-status-codes'; +import { BenchmarkService } from './benchmark.service'; + @Controller('benchmark') export class BenchmarkController { public constructor( diff --git a/apps/api/src/app/benchmark/benchmark.module.ts b/apps/api/src/app/benchmark/benchmark.module.ts index eb51588aa..c2cc3fbb5 100644 --- a/apps/api/src/app/benchmark/benchmark.module.ts +++ b/apps/api/src/app/benchmark/benchmark.module.ts @@ -3,13 +3,13 @@ import { SymbolModule } from '@ghostfolio/api/app/symbol/symbol.module'; import { ConfigurationModule } from '@ghostfolio/api/services/configuration/configuration.module'; import { DataProviderModule } from '@ghostfolio/api/services/data-provider/data-provider.module'; import { MarketDataModule } from '@ghostfolio/api/services/market-data/market-data.module'; +import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; import { PropertyModule } from '@ghostfolio/api/services/property/property.module'; import { SymbolProfileModule } from '@ghostfolio/api/services/symbol-profile/symbol-profile.module'; import { Module } from '@nestjs/common'; import { BenchmarkController } from './benchmark.controller'; import { BenchmarkService } from './benchmark.service'; -import { PrismaModule } from '@ghostfolio/api/services/prisma/prisma.module'; @Module({ controllers: [BenchmarkController], diff --git a/apps/api/src/app/benchmark/benchmark.service.ts b/apps/api/src/app/benchmark/benchmark.service.ts index a01af1f1a..bc8670bc6 100644 --- a/apps/api/src/app/benchmark/benchmark.service.ts +++ b/apps/api/src/app/benchmark/benchmark.service.ts @@ -20,8 +20,8 @@ import { Injectable } from '@nestjs/common'; import { SymbolProfile } from '@prisma/client'; import Big from 'big.js'; import { format } from 'date-fns'; -import ms from 'ms'; import { uniqBy } from 'lodash'; +import ms from 'ms'; @Injectable() export class BenchmarkService {