Adding env var to show version is local

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

View file

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