lh vor 1 Woche
Ursprung
Commit
05da31083d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app/Services/Book/BookService.php

+ 2 - 2
app/Services/Book/BookService.php

@@ -296,7 +296,7 @@ class BookService
     }
 
     public function audioEffects($data) {
-        return DB::table('mp_audio_effects')->where('is_enabled', 1)->select('audio_effect_name', 'audio_effect_url', 'playtime_seconds')->get()->map(function ($value) {
+        return DB::table('mp_audio_effects')->where('is_enabled', 1)->select('id as audio_effect_id', 'audio_effect_name', 'audio_effect_url', 'playtime_seconds')->get()->map(function ($value) {
             return (array)$value;
         })->toArray();
     }
@@ -396,7 +396,7 @@ class BookService
     }
 
     public function bgms($data) {
-        return DB::table('mp_bgms')->where('is_enabled', 1)->select('bgm_name', 'bgm_url', 'playtime_seconds')->get()->map(function ($value) {
+        return DB::table('mp_bgms')->where('is_enabled', 1)->select('id as bgm_id', 'bgm_name', 'bgm_url', 'playtime_seconds')->get()->map(function ($value) {
             return (array)$value;
         })->toArray();
     }