diff --git a/server/routes.ts b/server/routes.ts index e623bdb..602b59d 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -471,6 +471,7 @@ export async function registerRoutes(app: Express): Promise { // Get comments for the post const comments = await storage.getCommentsByEntityId('blogPost', post.id); + console.log('Blog post comments for', post.id, ':', comments); // Get enhanced comments with user info const enhancedComments = await Promise.all(comments.map(async (comment: Comment) => { @@ -504,6 +505,7 @@ export async function registerRoutes(app: Express): Promise { // Get tags for the post const tags = await storage.getBlogPostTags(post.id); + console.log('Blog post tags for', post.id, ':', tags); res.json({ ...post, diff --git a/server/storage.ts b/server/storage.ts index 54edb30..3b4c197 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -319,6 +319,9 @@ As we continue to develop the Tercul platform, we're committed to addressing the this.createComment({ content: "Fascinating exploration of how technology can preserve literary traditions!", userId: user1.id, + workId: null as any, // TypeScript workaround for optional field + translationId: null, + lineNumber: null, entityType: "blogPost", entityId: blogPost.id, parentId: null