Bugfix/fix voice call active text
This commit is contained in:
@@ -117,7 +117,7 @@ class VoiceCallHistoryModel {
|
||||
$sql .= isset($filters['billable']) ? self::generateFilterCondition($filters['billable'], "billable") : "";
|
||||
$sql .= isset($filters['duration']) ? self::generateFilterCondition($filters['duration'], "duration") : "";
|
||||
|
||||
return $sql;
|
||||
return $sql . " ORDER BY `start` DESC";
|
||||
}
|
||||
|
||||
public static function getVoiceCallHistory($filters, $limit = null, $offset = 0): array {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php /** @noinspection ALL */
|
||||
declare(strict_types=1);
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
final class AddVoiceCallHistoryStartIndex extends AbstractMigration {
|
||||
public function up(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
//VoiceCallHistory Table add start index
|
||||
$this->table("VoiceCallHistory")->addIndex(["start"]);
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void {
|
||||
if ($this->getEnvironment() == "thetool") {
|
||||
$this->table("VoiceCallHistory")->removeIndex(["start"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user