diff --git a/src/ntfy/provider.ts b/src/ntfy/provider.ts index 4d1a9e6..bf35b9c 100644 --- a/src/ntfy/provider.ts +++ b/src/ntfy/provider.ts @@ -60,11 +60,15 @@ export class NtfyProvider implements OnApplicationBootstrap { } async sendBootstrappedNotification() { - const gitCommit = this.configService.get('GIT_COMMIT') + const version = + this.configService.get('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], }), )