Skip to content

Commit

Permalink
Update last
Browse files Browse the repository at this point in the history
  • Loading branch information
kekefreedog committed Jun 27, 2024
1 parent e4fc681 commit c84e96b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/ApiV2Last.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ public static function get():void {
# Set limit
$options["limit"] = intval(Context::getParameters("count"));

# Set filters
$filter = $_GET["filters"] ?? $_GET["filter"] ?? [];

# Declare content
$content = $model
->readWithFilters(
[],
$filter,
"DESC",
null,
$options
Expand Down

0 comments on commit c84e96b

Please sign in to comment.