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
  • Loading branch information
jorenn92 committed Jan 28, 2024
1 parent 4bbacbf commit f39528f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/app/app.service.ts
Original file line number Diff line number Diff line change
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 f39528f

Please sign in to comment.