Merge pull request #541 from tidwall/missing-key-field

Fixed DEL geofence notifications missing "key" field
This commit is contained in:
Josh Baker 2020-03-21 18:22:54 -07:00 committed by GitHub
commit 77d33df542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,7 @@ func fenceMatch(
} }
return []string{ return []string{
`{"command":"del"` + hookJSONString(hookName, metas) + `{"command":"del"` + hookJSONString(hookName, metas) +
`,"key":` + jsonString(details.key) +
`,"id":` + jsonString(details.id) + `,"id":` + jsonString(details.id) +
`,"time":` + jsonTimeFormat(details.timestamp) + `}`, `,"time":` + jsonTimeFormat(details.timestamp) + `}`,
} }