refactor: allow messages not starting with http

This commit is contained in:
Carlos Valente
2024-10-06 21:38:17 +02:00
committed by Carlos Valente
parent 213f516f71
commit 6ce275da7a
2 changed files with 1 additions and 9 deletions
+1 -5
View File
@@ -222,11 +222,7 @@ export function sanitiseHttpSubscriptions(subscriptions?: HttpSubscription[]): H
return subscriptions.filter(
({ id, cycle, message, enabled }) =>
typeof id === 'string' &&
isOntimeCycle(cycle) &&
typeof message === 'string' &&
message.startsWith('http://') &&
typeof enabled === 'boolean',
typeof id === 'string' && isOntimeCycle(cycle) && typeof message === 'string' && typeof enabled === 'boolean',
);
}