Commit 164f4d3b authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(models): set updatedField as empty string when not used

parent 9899870e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class LikeModel extends UuidModel
     */
    protected $useTimestamps = true;

    protected $updatedField;
    protected $updatedField = '';

    public function addLike(Actor $actor, EpisodeComment $comment, bool $registerActivity = true): void
    {
+0 −1
Original line number Diff line number Diff line
@@ -244,7 +244,6 @@ class EpisodeController extends BaseController

        $episodeModel = new EpisodeModel();
        if (! ($newEpisodeId = $episodeModel->insert($newEpisode, true))) {
            dd($episodeModel->errors());
            $db->transRollback();
            return redirect()
                ->back()
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class ActivityModel extends UuidModel
     */
    protected $useTimestamps = true;

    protected $updatedField;
    protected $updatedField = '';

    public function getActivityById(string $activityId): ?Activity
    {
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ class BlockedDomainModel extends Model
     */
    protected $useTimestamps = true;

    protected $updatedField;
    protected $updatedField = '';

    /**
     * Retrieves instance or podcast domain blocks depending on whether or not $podcastId param is set.
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class FavouriteModel extends UuidModel
     */
    protected $useTimestamps = true;

    protected $updatedField;
    protected $updatedField = '';

    public function addFavourite(Actor $actor, Post $post, bool $registerActivity = true): void
    {
Loading