This commit is contained in:
IGNY8 VPS (Salman)
2025-12-01 06:11:25 +00:00
parent 1a3b71ffd5
commit 0af40c0929
2 changed files with 16 additions and 6 deletions

View File

@@ -165,6 +165,14 @@ class PublisherService:
record.metadata = result.get('metadata', {})
record.save()
# Update content status to published if successful
if result.get('success'):
content.status = 'published'
content.external_id = result.get('external_id')
content.external_url = result.get('url')
content.save(update_fields=['status', 'external_id', 'external_url', 'updated_at'])
logger.info(f"[PublisherService._publish_to_destination] ✅ Updated content status to 'published'")
return {
'destination': destination,
'success': result.get('success', False),