Cleanup some imports

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-08-29 18:57:00 +02:00
parent 5ed2fae44e
commit 9450f500d6
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
10 changed files with 11 additions and 15 deletions

View file

@ -9,12 +9,12 @@ import {
Delete,
Get,
HttpCode,
InternalServerErrorException,
NotFoundException,
Param,
Put,
UseGuards,
Req,
InternalServerErrorException,
UseGuards,
} from '@nestjs/common';
import {
ApiNoContentResponse,

View file

@ -12,6 +12,7 @@ import { UsersService } from '../users/users.service';
@Injectable()
export class MockAuthGuard {
private user: User;
constructor(private usersService: UsersService) {}
async canActivate(context: ExecutionContext): Promise<boolean> {

View file

@ -7,8 +7,7 @@ import { Inject, Injectable } from '@nestjs/common';
import { promises as fs } from 'fs';
import { join } from 'path';
import mediaConfiguration from '../../config/media.config';
import { MediaConfig } from '../../config/media.config';
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
import { MediaBackendError } from '../../errors/errors';
import { ConsoleLoggerService } from '../../logger/console-logger.service';
import { MediaBackend } from '../media-backend.interface';

View file

@ -7,8 +7,7 @@ import { Inject, Injectable } from '@nestjs/common';
import fetch, { Response } from 'node-fetch';
import { URLSearchParams } from 'url';
import mediaConfiguration from '../../config/media.config';
import { MediaConfig } from '../../config/media.config';
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
import { MediaBackendError } from '../../errors/errors';
import { ConsoleLoggerService } from '../../logger/console-logger.service';
import { MediaBackend } from '../media-backend.interface';

View file

@ -6,8 +6,7 @@
import { Inject, Injectable } from '@nestjs/common';
import { Client } from 'minio';
import mediaConfiguration from '../../config/media.config';
import { MediaConfig } from '../../config/media.config';
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
import { MediaBackendError } from '../../errors/errors';
import { ConsoleLoggerService } from '../../logger/console-logger.service';
import { MediaBackend } from '../media-backend.interface';

View file

@ -6,8 +6,7 @@
import { Inject, Injectable } from '@nestjs/common';
import fetch, { Response } from 'node-fetch';
import mediaConfiguration from '../../config/media.config';
import { MediaConfig } from '../../config/media.config';
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
import { MediaBackendError } from '../../errors/errors';
import { ConsoleLoggerService } from '../../logger/console-logger.service';
import { MediaBackend } from '../media-backend.interface';

View file

@ -5,8 +5,6 @@
*/
import { forwardRef, Inject, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import base32Encode from 'base32-encode';
import { randomBytes } from 'crypto';
import { Repository } from 'typeorm';
import appConfiguration, { AppConfig } from '../config/app.config';

View file

@ -7,10 +7,11 @@ import {
Column,
CreateDateColumn,
Entity,
JoinTable,
ManyToMany,
ManyToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { JoinTable, ManyToMany } from 'typeorm';
import { Note } from '../notes/note.entity';
import { Edit } from './edit.entity';

View file

@ -10,7 +10,6 @@ import { Repository } from 'typeorm';
import { AuthToken } from '../auth/auth-token.entity';
import { Author } from '../authors/author.entity';
import { AuthorsModule } from '../authors/authors.module';
import appConfigMock from '../config/mock/app.config.mock';
import { NotInDBError } from '../errors/errors';
import { Group } from '../groups/group.entity';

View file

@ -4,13 +4,14 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import {
Column,
CreateDateColumn,
Entity,
ManyToMany,
OneToMany,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from 'typeorm';
import { Column, OneToMany } from 'typeorm';
import { AuthToken } from '../auth/auth-token.entity';
import { Author } from '../authors/author.entity';