Skip to content

Commit

Permalink
feat: stop hiding featured project
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaabamboo committed May 16, 2024
1 parent 41c884e commit 397c4c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apps/astro/src/pages/[locale]/projects/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ if (!validateLocale(locale)) {
//TODO:
const data = await graphQLSdk.fetchProjects({
// locale
// locale,
limit: 75
});
const projects = data?.projects?.data ?? [];
Expand Down
3 changes: 1 addition & 2 deletions libs/graphql/queries/fetchProjects.gql
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
query fetchProjects($limit: Int = 100, $isFeatured: Boolean = false, $locale: I18NLocaleCode) {
query fetchProjects($limit: Int = 100, $locale: I18NLocaleCode) {
projects(
pagination: { pageSize: $limit }
filters: { isFeatured: { eq: $isFeatured } }
sort: ["isFeatured:desc", "date:desc"]
locale: $locale
) {
Expand Down

0 comments on commit 397c4c4

Please sign in to comment.