mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-23 05:01: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);
|
this.hostsLogRepo.save(log);
|
||||||
|
|
||||||
if(latestLog) {
|
if(latestLog && host.notify) {
|
||||||
const users = await this.followRepo.find({where: {enable: true}});
|
const users = await this.followRepo.find({where: {enable: true}});
|
||||||
users.forEach(async (user) => {
|
users.forEach(async (user) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user