Skip to content

Commit

Permalink
fix: logs in desc order
Browse files Browse the repository at this point in the history
  • Loading branch information
julianramirez2 committed Jul 31, 2023
1 parent 3e06975 commit 18c5bf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function get_logs($post_id) {

$logs = $wpdb->get_results(
$wpdb->prepare(
"SELECT * FROM $tabla_logs WHERE post_id = %d ORDER BY fecha_registro ASC",
"SELECT * FROM $tabla_logs WHERE post_id = %d ORDER BY fecha_registro DESC",
$post_id
),
ARRAY_A
Expand Down

0 comments on commit 18c5bf9

Please sign in to comment.