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 }; });