Skip to content

Commit

Permalink
fix: prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicToast committed Sep 23, 2024
1 parent cfe1fee commit b01fd48
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions apps/twitch-viewer-service/src/app/version/version.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import { VersionService } from './version.service';
import { ConfigService } from '@nestjs/config';

@Module({
controllers: [VersionController],
providers: [
VersionService,
{
provide: 'APP_VERSION',
useFactory: (config: ConfigService) => {
return config.get('APP_VERSION', 'local');
},
inject: [ConfigService],
},
],
controllers: [VersionController],
providers: [
VersionService,
{
provide: 'APP_VERSION',
useFactory: (config: ConfigService) => {
return config.get('APP_VERSION', 'local');
},
inject: [ConfigService],
},
],
})
export class VersionModule {}
8 changes: 4 additions & 4 deletions apps/twitch-viewer-service/src/app/version/version.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Inject, Injectable } from '@nestjs/common';

@Injectable()
export class VersionService {
constructor(@Inject('APP_VERSION') private readonly appVersion: string) {}
constructor(@Inject('APP_VERSION') private readonly appVersion: string) {}

getVersion(): string {
return this.appVersion;
}
getVersion(): string {
return this.appVersion;
}
}

0 comments on commit b01fd48

Please sign in to comment.