Adding env var to show version is local
This commit is contained in:
parent
7fe76186c7
commit
e3402fed65
1 changed files with 6 additions and 2 deletions
|
|
@ -60,11 +60,15 @@ export class NtfyProvider implements OnApplicationBootstrap {
|
|||
}
|
||||
|
||||
async sendBootstrappedNotification() {
|
||||
const gitCommit = this.configService.get<string>('GIT_COMMIT')
|
||||
const version =
|
||||
this.configService.get<string>('GIT_COMMIT') ??
|
||||
this.configService.get('LOCAL') === 'true'
|
||||
? 'LOCAL'
|
||||
: 'unknown'
|
||||
await this.publishQueue.add(
|
||||
...NtfyProvider.defaultJob({
|
||||
title: 'Autobaan up and running',
|
||||
message: `Version ${gitCommit}`,
|
||||
message: `Version ${version}`,
|
||||
tags: [MessageTags.badminton],
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue