From a7ac5545aecd6a7c9321f5717a80efe9a80010d6 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Thu, 18 Jun 2026 09:22:41 +0200 Subject: [PATCH] fix(magic): entferne reportDeviceProtectionState aus Lock-Profil-Flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Status kommt jetzt über /api/protection/event vom iOS Plugin. - /api/devices/protection-state gibt jetzt { success: true, data: null } zurück, damit der Rust-Client nicht failed. --- apps/rebreak-magic/app/components/IosDeviceCard.vue | 11 ----------- backend/server/api/devices/protection-state.post.ts | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/rebreak-magic/app/components/IosDeviceCard.vue b/apps/rebreak-magic/app/components/IosDeviceCard.vue index f1d7384..47536e8 100644 --- a/apps/rebreak-magic/app/components/IosDeviceCard.vue +++ b/apps/rebreak-magic/app/components/IosDeviceCard.vue @@ -325,7 +325,6 @@ const { stopLocalProfileServer, getInstalledProfiles, mdmPush, - reportDeviceProtectionState, } = useTauri(); const enrollmentPhase = ref<"idle" | "loading" | "waiting" | "checking" | "success" | "error">("idle"); @@ -899,16 +898,6 @@ async function checkInlineLockProfile() { lockLogs.value.push("✓ Lock-Profil erkannt"); - lockLogs.value.push("→ Melde Lock-Profil-Status an Backend …"); - await reportDeviceProtectionState( - props.device.deviceId, - "ios", - "nefilter", - true, - "Lock-Profil via QR-Code installiert", - ); - lockLogs.value.push("✓ Backend aktualisiert"); - lockLogs.value.push("→ Hole aktuellen Backend-Status …"); await refreshMdmStatus(); lockLogs.value.push("✓ Status aktualisiert"); diff --git a/backend/server/api/devices/protection-state.post.ts b/backend/server/api/devices/protection-state.post.ts index 4809eac..6b0a1c1 100644 --- a/backend/server/api/devices/protection-state.post.ts +++ b/backend/server/api/devices/protection-state.post.ts @@ -88,5 +88,5 @@ export default defineEventHandler(async (event) => { source ?? "app", ); - return { success: true }; + return { success: true, data: null }; });