Skip to content

Commit

Permalink
fix(core): update query to check expiry date
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Sep 17, 2024
1 parent 2c90316 commit e34d31c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* TODO: Remove once the API call is implemented
*/
export const studioAnnouncementQuery = `*[_type == "productAnnouncement"] | order(publishedDate desc) {
export const studioAnnouncementQuery = `*[_type == "productAnnouncement" && dateTime(expiryDate) > dateTime(now())] | order(publishedDate desc) {
...,
body[]{
...,
Expand Down

0 comments on commit e34d31c

Please sign in to comment.