fix: remove custom command from setAlarm to prevent command injection
This commit is contained in:
+1
-3
@@ -70,12 +70,10 @@ class Mutation:
|
||||
def set_alarm(
|
||||
self,
|
||||
cron_expression: str,
|
||||
command: Optional[str] = None,
|
||||
is_enabled: bool = True,
|
||||
id: Optional[str] = None,
|
||||
) -> Alarm:
|
||||
if command is None:
|
||||
command = _default_command()
|
||||
command = _default_command()
|
||||
|
||||
manager = get_manager()
|
||||
new_id = manager.set_alarm(
|
||||
|
||||
Reference in New Issue
Block a user