refactored autoplaylist and updated showinstance to make sequential adds possible

This commit is contained in:
Robbt 2019-02-09 10:58:00 -05:00
parent 8de94a670f
commit 6f7c2f2cc9
2 changed files with 26 additions and 34 deletions

View file

@ -242,6 +242,9 @@ SQL;
array(array("id" => $lastid, "instance" => $id, "timestamp" => $ts)),
array(array("id" => $pl_id, "type" => "playlist"))
);
// doing this to update the database schedule so that subsequent adds will work.
$con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME);
$this->_showInstance->updateScheduleStatus($con);
}
/**
@ -259,6 +262,9 @@ SQL;
array(array("id" => 0, "instance" => $id, "timestamp" => $ts)),
array(array("id" => $pl_id, "type" => "playlist"))
);
// doing this to update the database schedule so that subsequent adds will work.
$con = Propel::getConnection(CcShowInstancesPeer::DATABASE_NAME);
$this->_showInstance->updateScheduleStatus($con);
}