visuddhinanda 2 лет назад
Родитель
Сommit
fd3f14926a
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/Http/Resources/SentResource.php

+ 3 - 1
app/Http/Resources/SentResource.php

@@ -58,7 +58,9 @@ class SentResource extends JsonResource
                                              null,
                                              $mode,
                                              $channel['type'],
-                                             $this->content_type);
+                                             $this->content_type,
+                                             $request->get('format','react')
+                                            );
         }
         if($request->get('mode') === "edit" || $request->get('mode') === "wbw"){
             $data['suggestionCount'] = SuggestionApi::getCountBySent($this->book_id,