From 99cc669a79b889196c59490bca0028df7e77fd76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 21 Apr 2023 16:24:28 +0200 Subject: [PATCH] Fix InstaGetTopMediasJob forgotten truncate table --- app/Jobs/InstaGetTopMediasJob.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/Jobs/InstaGetTopMediasJob.php b/app/Jobs/InstaGetTopMediasJob.php index 9ca6fb8..a2dbfae 100644 --- a/app/Jobs/InstaGetTopMediasJob.php +++ b/app/Jobs/InstaGetTopMediasJob.php @@ -46,10 +46,6 @@ class InstaGetTopMediasJob implements ShouldQueue, ShouldBeUnique Cache::put('top_media_job_fetch_dispatched', true); Cache::put('top_media_job_fetch_running', true); DB::transaction(function () { - // * 'Truncate' our list to preserve only the desired media amount. - // Dont use truncate here because it implies a commit. - InstaMedia::query()->delete(); - Cache::put( 'top_media_ajax_fetch', InstaMedia::fetchInstagramTopMediaList(false)->values()