mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 01:48:54 +01:00
fix(status): update notification sending logic to use service IDs
This commit is contained in:
@@ -230,7 +230,7 @@ export class StatusService {
|
||||
const hosts = notifs.map((n) => n.host);
|
||||
const users_ids : string[] = [];
|
||||
console.log("Sending notifs...")
|
||||
users.filter(v => hosts.includes(v.service)).forEach(async (user) => {
|
||||
users.filter(v => hosts.map((h) => h.id).includes(v.serviceId)).forEach(async (user) => {
|
||||
if(!users_ids.includes(user.user_discord)) {
|
||||
users_ids.push(user.user_discord)
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user