Skip to content

Commit 0062528

Browse files
committed
bug fix when removing featured image
1 parent 3ab12c2 commit 0062528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controllers/HessamAdminController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ public function update_post(UpdateHessamCMSPostRequest $request, $blogPostId)
352352
public function remove_photo($postSlug, $lang_id)
353353
{
354354
$post = HessamPostTranslation::where([
355-
"slug", '=', $postSlug,
356-
'lang_id', '=', $lang_id
355+
["slug", '=', $postSlug],
356+
['lang_id', '=', $lang_id]
357357
])->firstOrFail();
358358

359359
$path = public_path('/' . config("hessamcms.blog_upload_dir"));

0 commit comments

Comments
 (0)