Skip to content

Commit 1b8929d

Browse files
authored
Fixes bug with filter-alerts install panics on null throttleTimeSeconds (#190)
1 parent 892b18c commit 1b8929d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

internal/api/filter-alerts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (fa *FilterAlerts) Create(searchDomainName string, newFilterAlert *FilterAl
8787
newFilterAlert.Enabled,
8888
ownershipRunAsID,
8989
newFilterAlert.ThrottleField,
90-
*newFilterAlert.ThrottleTimeSeconds,
90+
newFilterAlert.ThrottleTimeSeconds,
9191
humiographql.QueryOwnershipType(newFilterAlert.QueryOwnershipType),
9292
)
9393
if err != nil {

internal/api/humiographql/graphql/filter-alerts.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mutation CreateFilterAlert(
3939
$Enabled: Boolean!
4040
$RunAsUserID: String
4141
$ThrottleField: String
42-
$ThrottleTimeSeconds: Long!
42+
$ThrottleTimeSeconds: Long
4343
$QueryOwnershipType: QueryOwnershipType!
4444
) {
4545
createFilterAlert(input: {
@@ -80,4 +80,4 @@ query GetFilterAlertByID(
8080
...FilterAlertDetails
8181
}
8282
}
83-
}
83+
}

internal/api/humiographql/humiographql.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)