Skip to content

Commit

Permalink
Fix querying publish dates on undated entries
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed May 15, 2024
1 parent 4bbd23e commit ce617bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Stache/Query/QueriesEntryStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function whereStatus(string $status)

return $this->where(fn ($query) => $this
->getCollectionsForStatusQuery()
->filter(fn ($collection) => $collection->dated())
->each(fn ($collection) => $query->orWhere(fn ($q) => $this->addCollectionStatusLogicToQuery($q, $status, $collection))));
}

Expand Down

0 comments on commit ce617bd

Please sign in to comment.