From f85b1ecdebf48e5b165813ff23dbf7dd40389db0 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Mon, 21 Nov 2016 01:08:45 +0000 Subject: [PATCH] Attempt to fix playlist adding bug --- app/Commands/EditTrackCommand.php | 2 +- app/Models/Track.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Commands/EditTrackCommand.php b/app/Commands/EditTrackCommand.php index 3efb286a..8fe02289 100644 --- a/app/Commands/EditTrackCommand.php +++ b/app/Commands/EditTrackCommand.php @@ -179,7 +179,7 @@ class EditTrackCommand extends CommandBase } if (isset($this->_input['hwc_submit']) && new \DateTime() < new \DateTime("2016-12-18 00:00:00")) { - $playlist = Playlist::where('user_id', 22549)->first(); + $playlist = Playlist::where('id', 658)->first(); if ($this->_input['hwc_submit'] === true) { if (!$playlist->tracks()->get()->contains($track)) { diff --git a/app/Models/Track.php b/app/Models/Track.php index ca798fe4..0d32cd41 100644 --- a/app/Models/Track.php +++ b/app/Models/Track.php @@ -534,7 +534,7 @@ class Track extends Model implements Searchable, Commentable, Favouritable $returnValue['username'] = User::whereId($track->user_id)->first()->username; // Seasonal - $returnValue['hwc_submit'] = Playlist::where('user_id', 22549)->first()->tracks()->get()->contains($track); + $returnValue['hwc_submit'] = Playlist::where('id', 658)->first()->tracks()->get()->contains($track); return $returnValue; }