unify to s/success/approved/

inventory-app and doorboy-proxy uses this
This commit is contained in:
2026-06-11 22:01:33 +03:00
parent ab5c255b28
commit 7bd5f4184b

View File

@@ -453,12 +453,12 @@ func reloadInfo() error {
return nil
}
func sendSwipeEvent(cardUidHash string, success bool) error {
func sendSwipeEvent(cardUidHash string, approved bool) error {
swipeEvent := map[string]any{
"uid_hash": cardUidHash,
"door": config.door,
"timestamp": time.Now().Format(time.RFC3339),
"success": success,
"approved": approved,
}
data, err := json.Marshal(swipeEvent)