Skip to content

Commit c982c7e

Browse files
authored
Merge pull request #143 from import-ai/chore/test
Chore/test
2 parents 865ee0a + 4d91888 commit c982c7e

File tree

13 files changed

+4803
-36
lines changed

13 files changed

+4803
-36
lines changed

src/attachments/attachments.controller.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
Delete,
44
Get,
55
HttpStatus,
6-
Logger,
76
Param,
87
Post,
98
Query,
@@ -16,17 +15,11 @@ import { FilesInterceptor } from '@nestjs/platform-express';
1615
import { AttachmentsService } from 'omniboxd/attachments/attachments.service';
1716
import { Request, Response } from 'express';
1817
import { UserId } from 'omniboxd/decorators/user-id.decorator';
19-
import { AuthService } from 'omniboxd/auth/auth.service';
2018
import { CookieAuth } from 'omniboxd/auth';
2119

2220
@Controller('api/v1/attachments')
2321
export class AttachmentsController {
24-
private readonly logger = new Logger(AttachmentsController.name);
25-
26-
constructor(
27-
private readonly attachmentsService: AttachmentsService,
28-
private readonly authService: AuthService,
29-
) {}
22+
constructor(private readonly attachmentsService: AttachmentsService) {}
3023

3124
@Post()
3225
@UseInterceptors(FilesInterceptor('file[]'))

src/attachments/attachments.module.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ import { Module } from '@nestjs/common';
22
import { PermissionsModule } from 'omniboxd/permissions/permissions.module';
33
import { AttachmentsController } from 'omniboxd/attachments/attachments.controller';
44
import { AttachmentsService } from 'omniboxd/attachments/attachments.service';
5-
import { AuthModule } from 'omniboxd/auth/auth.module';
65
import { MinioModule } from 'omniboxd/minio/minio.module';
76

87
@Module({
98
exports: [AttachmentsService],
109
providers: [AttachmentsService],
1110
controllers: [AttachmentsController],
12-
imports: [PermissionsModule, MinioModule, AuthModule],
11+
imports: [PermissionsModule, MinioModule],
1312
})
1413
export class AttachmentsModule {}

0 commit comments

Comments
 (0)