Skip to content

Commit 7671ddc

Browse files
committed
refactor(graphql-api): Small changes
1 parent 58e128b commit 7671ddc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/graphql-api/src/shared/subtitles/subtitles.service.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export class SubtitlesService {
5252

5353
this.logger.log(`[${download._id}]: Search for subtitles`)
5454

55-
const filename = torrent.name
5655
const location = resolve(
5756
this.configService.get(ConfigService.DOWNLOAD_LOCATION),
5857
download._id
@@ -75,8 +74,8 @@ export class SubtitlesService {
7574
sublanguageid: 'all',
7675
filesize: torrent.length,
7776
path: resolve(location, torrent.path),
77+
filename: torrent.name,
7878
imdbid,
79-
filename,
8079
season,
8180
episode,
8281

apps/graphql-api/src/shows/shows.resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export class ShowsResolver {
2222
private readonly configService: ConfigService
2323
) {
2424
this.trakt = new Trakt({
25+
// eslint-disable-next-line @typescript-eslint/camelcase
2526
client_id: this.configService.get(ConfigService.TRAKT_KEY)
2627
})
27-
2828
}
2929

3030
/**

0 commit comments

Comments
 (0)