chore: removed debug output

This commit is contained in:
2026-02-22 13:35:02 +01:00
parent d2cc94d3b9
commit ce6422a021

View File

@@ -397,18 +397,8 @@ export class PostEngine extends EventEmitter {
// Auto-update slug when title changes, but only if post was never published
let newSlug = data.slug ?? existing.slug;
console.log('[updatePost] Slug update check:', {
'data.title': data.title,
'existing.title': existing.title,
'existing.publishedAt': existing.publishedAt,
'titleDefined': data.title !== undefined,
'titleChanged': data.title !== existing.title,
'neverPublished': !existing.publishedAt,
'shouldUpdateSlug': data.title !== undefined && data.title !== existing.title && !existing.publishedAt,
});
if (data.title !== undefined && data.title !== existing.title && !existing.publishedAt) {
newSlug = await this.generateUniqueSlug(data.title || 'untitled', id);
console.log('[updatePost] Generated new slug:', newSlug);
}
const updated: PostData = {