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