NASER fix delete redis record

This commit is contained in:
mobin
2026-04-08 09:30:38 +00:00
parent fcc50d8ec8
commit 107fe6f4d3
2 changed files with 30 additions and 30 deletions
+3 -3
View File
@@ -244,10 +244,10 @@ class AdminController extends Controller
$st->delete();
if ($st) {
tel_notif($st->user_identity, "تایید");
$create_requests_key = "att-tempreq:creates:{$data->userid}";
Redis::connection()->lrem($create_requests_key, 1, json_encode($data));
// $create_requests_key = "att-tempreq:creates:{$data->userid}";
// Redis::connection()->lrem($create_requests_key, 1, json_encode($data));
// Redis::connection()->del("att-tempreq:{$data->userid}:{$data->id}");
Redis::connection()->del("att-tempreq:{$data->userid}:{$data->id}");
return redirect()->back()->with('message', [
'color' => '#6aff00ff',
'text' => 'رکورد با موفقیت حذف شد✔️'