diff --git a/app/commands/MigrateOldData.php b/app/commands/MigrateOldData.php index 50c04c27..4bef8f5c 100644 --- a/app/commands/MigrateOldData.php +++ b/app/commands/MigrateOldData.php @@ -141,10 +141,10 @@ class MigrateOldData extends Command { } $this->info('Syncing Playlist Tracks'); - $oldPlaylistTracks = $oldDb->table('playlist_track'); + $oldPlaylistTracks = $oldDb->table('playlist_track')->get(); foreach ($oldPlaylistTracks as $playlistTrack) { DB::table('playlist_tracks')->insert([ - 'id' => $playlistTrack['id'], + 'id' => $playlistTrack->id, 'created_at' => $playlistTrack->created_at, 'updated_at' => $playlistTrack->updated_at, 'position' => $playlistTrack->position, @@ -154,7 +154,7 @@ class MigrateOldData extends Command { } $this->info('Syncing Comments'); - $oldComments = $oldDb->table('comments'); + $oldComments = $oldDb->table('comments')->get(); foreach ($oldComments as $fav) { DB::table('comments')->insert([ 'id' => $fav->id, @@ -171,7 +171,7 @@ class MigrateOldData extends Command { } $this->info('Syncing Favourites'); - $oldFavs = $oldDb->table('favourites'); + $oldFavs = $oldDb->table('favourites')->get(); foreach ($oldFavs as $fav) { DB::table('favourites')->insert([ 'id' => $fav->id, diff --git a/public/asset.php b/public/asset.php index 8efe5c23..0c4eea00 100644 --- a/public/asset.php +++ b/public/asset.php @@ -44,7 +44,8 @@ } else { $filePath = trim($_GET['file'], '/'); $lastModifiedCollection = new AssetCollection([new GlobAsset("styles/*.less")]); - $bundle = new AssetCollection([new FileAsset($filePath), new CacheBusterAsset($lastModifiedCollection->getLastModified())], [new LessFilter('node')]); + $bundle = new AssetCollection([new FileAsset($filePath), new CacheBusterAsset($lastModifiedCollection->getLastModified())], + [new LessFilter(Config::get('app.node'), Config::get('app.node_paths'))]); $bundle->setTargetPath($filePath); }