diff options
| author | woxtu <woxtup@gmail.com> | 2023-08-05 10:33:00 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-05 10:33:00 +0900 |
| commit | 8a6791da3fa5c6554689ae06721925f7842b3b7b (patch) | |
| tree | df51cb7ceadd7d1394d9254cbc2a2f7b53ebd8a6 /packages/backend/src/core/NotificationService.ts | |
| parent | chore(frontend): video sourceからtypeを削除 (diff) | |
| download | sharkey-8a6791da3fa5c6554689ae06721925f7842b3b7b.tar.gz sharkey-8a6791da3fa5c6554689ae06721925f7842b3b7b.tar.bz2 sharkey-8a6791da3fa5c6554689ae06721925f7842b3b7b.zip | |
refactor(backend): Remove unused injections (#11462)
* Remove unused injections
* Remove unused imports
Diffstat (limited to 'packages/backend/src/core/NotificationService.ts')
| -rw-r--r-- | packages/backend/src/core/NotificationService.ts | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/packages/backend/src/core/NotificationService.ts b/packages/backend/src/core/NotificationService.ts index 0f2d65dff8..a708a54004 100644 --- a/packages/backend/src/core/NotificationService.ts +++ b/packages/backend/src/core/NotificationService.ts @@ -8,10 +8,9 @@ import * as Redis from 'ioredis'; import { Inject, Injectable, OnApplicationShutdown } from '@nestjs/common'; import { In } from 'typeorm'; import { DI } from '@/di-symbols.js'; -import type { MutingsRepository, UserProfile, UserProfilesRepository, UsersRepository } from '@/models/index.js'; +import type { UsersRepository } from '@/models/index.js'; import type { User } from '@/models/entities/User.js'; import type { Notification } from '@/models/entities/Notification.js'; -import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { bindThis } from '@/decorators.js'; import { GlobalEventService } from '@/core/GlobalEventService.js'; import { PushNotificationService } from '@/core/PushNotificationService.js'; @@ -30,14 +29,7 @@ export class NotificationService implements OnApplicationShutdown { @Inject(DI.usersRepository) private usersRepository: UsersRepository, - @Inject(DI.userProfilesRepository) - private userProfilesRepository: UserProfilesRepository, - - @Inject(DI.mutingsRepository) - private mutingsRepository: MutingsRepository, - private notificationEntityService: NotificationEntityService, - private userEntityService: UserEntityService, private idService: IdService, private globalEventService: GlobalEventService, private pushNotificationService: PushNotificationService, |