Updates
This commit is contained in:
@@ -27,6 +27,9 @@ export const getStaticProps: GetStaticProps<PagePropsType> = async (ctx) => {
|
||||
slug: {
|
||||
value: ctx.params?.slug,
|
||||
},
|
||||
published: {
|
||||
value: "1",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -68,6 +71,13 @@ export const getStaticPaths: GetStaticPaths = async (ctx) => {
|
||||
await datasquirel.crud<DSQL_TBENME_BLOG_POSTS>({
|
||||
action: "get",
|
||||
table: "blog_posts",
|
||||
query: {
|
||||
query: {
|
||||
published: {
|
||||
value: "1",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const blogPosts = blogPostRes.payload;
|
||||
|
||||
@@ -23,6 +23,11 @@ export const getStaticProps: GetStaticProps<PagePropsType> = async (ctx) => {
|
||||
field: "id",
|
||||
strategy: "DESC",
|
||||
},
|
||||
query: {
|
||||
published: {
|
||||
value: "1",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user