unify to s/success/approved/
inventory-app and doorboy-proxy uses this
This commit is contained in:
@@ -453,12 +453,12 @@ func reloadInfo() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func sendSwipeEvent(cardUidHash string, success bool) error {
|
func sendSwipeEvent(cardUidHash string, approved bool) error {
|
||||||
swipeEvent := map[string]any{
|
swipeEvent := map[string]any{
|
||||||
"uid_hash": cardUidHash,
|
"uid_hash": cardUidHash,
|
||||||
"door": config.door,
|
"door": config.door,
|
||||||
"timestamp": time.Now().Format(time.RFC3339),
|
"timestamp": time.Now().Format(time.RFC3339),
|
||||||
"success": success,
|
"approved": approved,
|
||||||
}
|
}
|
||||||
|
|
||||||
data, err := json.Marshal(swipeEvent)
|
data, err := json.Marshal(swipeEvent)
|
||||||
|
|||||||
Reference in New Issue
Block a user