From 736e1f4d39d88f00e218024faed4ceca43b45204 Mon Sep 17 00:00:00 2001 From: collin Date: Wed, 25 Mar 2026 13:29:57 +0100 Subject: [PATCH] Adding env var to show version is local --- src/ntfy/provider.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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], }), )