feat: complete scheduled publishing, security remediation and DEV_TICKETS implementation
Deploy Canina / deploy (push) Successful in 2m29s
E2E Playwright Tests / Run Full E2E & Security Suites (push) Failing after 6s

This commit is contained in:
parsa committed 2026-09-29 01:15:33 +03:30
1 parent d6d4158cbe
commit efb3c473c4
35 files changed
+685 -185

No files matched your search

+11
View File
@@ -182,6 +182,17 @@ export class BlogsService {
throw new NotFoundException('مقاله یافت نشد');
}
// Public route must not expose scheduled, draft, or future published posts
const now = new Date();
const isReady =
blog.isPublished &&
blog.status === 'PUBLISHED' &&
(!blog.publishedAt || blog.publishedAt <= now);
if (!isReady) {
throw new NotFoundException('مقاله یافت نشد');
}
// Fetch related products safely
let relatedProducts: any[] = [];
if (