mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 01:48:54 +01:00
feat(status): ensure notifications are sent only for enabled hosts
This commit is contained in:
@@ -173,7 +173,7 @@ export class StatusService {
|
||||
|
||||
this.hostsLogRepo.save(log);
|
||||
|
||||
if(latestLog) {
|
||||
if(latestLog && host.notify) {
|
||||
const users = await this.followRepo.find({where: {enable: true}});
|
||||
users.forEach(async (user) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user