feat(status): ensure notifications are sent only for enabled hosts

This commit is contained in:
2025-10-31 12:30:20 +01:00
parent 37fbfd1c8c
commit 49da70082e

View File

@@ -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 {