video func implemented

This commit is contained in:
dimitar committed 2026-02-03 21:18:25 +01:00
1 parent 3bc534489d
commit 89b8687431
13 files changed
+504 -9

No files matched your search

+12
View File
@@ -442,6 +442,18 @@ export class LiveBlogService implements OnModuleInit {
return await this.liveBlogRepository.save(liveBlog);
}
async removeByStrapiId(strapiId: string): Promise<void> {
const liveBlog = await this.liveBlogRepository.findOne({ where: { strapiId } });
if (!liveBlog) {
this.logger.warn(`LiveBlog with strapiId ${strapiId} not found`);
return;
}
await this.liveBlogRepository.remove(liveBlog);
this.logger.log(`Successfully deleted live blog with strapiId: ${strapiId}`);
}
// Utility methods
async getLiveBlogsWithRecentUpdates(hours = 24): Promise<LiveBlog[]> {
const since = new Date();