Compare commits
2 commits
safe_waiti
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e3402fed65 | |||
| 7fe76186c7 |
2 changed files with 7 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ export class NtfyClient {
|
|||
throw new Error(`${response.status} - ${response.statusText}`)
|
||||
}
|
||||
} catch (error: unknown) {
|
||||
this.loggerService.error('ntfy client failed', { error })
|
||||
this.loggerService.error('ntfy client failed', { error: error instanceof Error ? error.message : JSON.stringify(error) })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue