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/AiService.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/AiService.ts')
| -rw-r--r-- | packages/backend/src/core/AiService.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/backend/src/core/AiService.ts b/packages/backend/src/core/AiService.ts index fc7b0226c0..4e876495a6 100644 --- a/packages/backend/src/core/AiService.ts +++ b/packages/backend/src/core/AiService.ts @@ -6,12 +6,10 @@ import * as fs from 'node:fs'; import { fileURLToPath } from 'node:url'; import { dirname } from 'node:path'; -import { Inject, Injectable } from '@nestjs/common'; +import { Injectable } from '@nestjs/common'; import * as nsfw from 'nsfwjs'; import si from 'systeminformation'; import { Mutex } from 'async-mutex'; -import type { Config } from '@/config.js'; -import { DI } from '@/di-symbols.js'; import { bindThis } from '@/decorators.js'; const _filename = fileURLToPath(import.meta.url); @@ -26,8 +24,6 @@ export class AiService { private modelLoadMutex: Mutex = new Mutex(); constructor( - @Inject(DI.config) - private config: Config, ) { } |