QR: fix delete 500 — relation is scanEvents(), not scans()
Deploy Ladill QR Plus / deploy (push) Successful in 35s
Deploy Ladill QR Plus / deploy (push) Successful in 35s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
46d0ef8825
commit
f3563c7d3e
@@ -285,7 +285,7 @@ class QrCodeController extends Controller
|
||||
|
||||
// Remove the code and its scan history. Deletion is gated behind a
|
||||
// type-to-confirm dialog in the UI — this is intentionally permanent.
|
||||
$qrCode->scans()->delete();
|
||||
$qrCode->scanEvents()->delete();
|
||||
$qrCode->delete();
|
||||
|
||||
return redirect()
|
||||
|
||||
Reference in New Issue
Block a user