Skip to content

Commit

Permalink
MDL-67734 core_xapi: Fix MSSQL PHPUnit failure with duplicated id
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranrecio authored and sarjona committed Apr 2, 2020
1 parent 17f429e commit d8c9c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xapi/tests/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function get_last_log_entry(): ?\core\event\base {

$select = "component = :component";
$params = ['component' => 'core_xapi'];
$records = $this->store->get_events_select($select, $params, 'id DESC', 0, 1);
$records = $this->store->get_events_select($select, $params, 'timecreated DESC', 0, 1);

if (empty($records)) {
return null;
Expand Down

0 comments on commit d8c9c99

Please sign in to comment.