From 6081f56b85d22d6a64ae62c73920248d88bd061c Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Fri, 21 Jun 2024 16:25:25 +0200 Subject: [PATCH] fix --- src/routes/blog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/blog.js b/src/routes/blog.js index 894a214..67d7bfa 100644 --- a/src/routes/blog.js +++ b/src/routes/blog.js @@ -93,7 +93,7 @@ export const blogRoutes = (fastify, _, done) => { is_public: articlesTable.is_public, created_at: articlesTable.created_at, status: articlesTable.status - }).where(and(eq(articlesTable.site_id, site.id), not(articlesTable.status, "done"))); + }).from(articlesTable).where(and(eq(articlesTable.site_id, site.id), not(articlesTable.status, "done"))); } response.send({