This commit is contained in:
3
main.go
3
main.go
@@ -6326,7 +6326,7 @@ func (d *detector) insertDetection(ctx context.Context, det Detection) (bool, er
|
||||
const q = `
|
||||
INSERT IGNORE INTO detections
|
||||
(rule_name, severity, hostname, channel_name, event_id, score, window_start, window_end, summary, details_json, created_at, status)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(6),?)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(6), ?)
|
||||
`
|
||||
|
||||
res, err := d.db.ExecContext(ctx, q,
|
||||
@@ -6340,7 +6340,6 @@ VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, UTC_TIMESTAMP(6),?)
|
||||
det.WindowEnd.UTC(),
|
||||
det.Summary,
|
||||
string(det.Details),
|
||||
string(det.Status),
|
||||
status0,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user