Adding env var to show version is local
All checks were successful
ci/woodpecker/manual/test Pipeline was successful
ci/woodpecker/manual/deploy Pipeline was successful

This commit is contained in:
collin 2026-03-25 13:29:57 +01:00
parent 7fe76186c7
commit e3402fed65
No known key found for this signature in database

View file

@ -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],
}),
)