Skip to content

Commit

Permalink
refactor: Small improvements after merge of version indicator feature
Browse files Browse the repository at this point in the history
* refactor(modules): ExternalApiService module import in app.service.ts to relative link

* refactor: Small improvements after merge of version indicator feature
  • Loading branch information
jorenn92 authored Jan 28, 2024
1 parent a126561 commit 32b7c18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/app/app.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, Logger } from '@nestjs/common';
import { ExternalApiService } from 'src/modules/api/external-api/external-api.service';
import { ExternalApiService } from '../modules/api/external-api/external-api.service';

interface VersionResponse {
status: 1 | 0;
Expand Down Expand Up @@ -27,9 +27,9 @@ export class AppService {
const calculatedVersion =
versionTag !== 'stable'
? process.env.GIT_SHA
? `${versionTag}-${process.env.GIT_SHA}`
? `${versionTag}-${process.env.GIT_SHA.substring(0, 7)}`
: `${versionTag}-`
: `${versionTag}-${packageVersion}`;
: `${packageVersion}`;

const local = process.env.NODE_ENV !== 'production';

Expand Down

0 comments on commit 32b7c18

Please sign in to comment.