fix: update articles unpublish

This commit is contained in:
hanif salafi 2025-10-28 07:25:47 +07:00
parent 08820dbee5
commit 868b9fed0b
1 changed files with 1 additions and 0 deletions

View File

@ -1316,6 +1316,7 @@ func (_i *articlesService) Unpublish(clientId *uuid.UUID, articleId uint, authTo
article.IsPublish = &isPublishFalse
article.PublishedAt = nil
article.PublishSchedule = nil
article.IsDraft = &isDraftTrue
article.DraftedAt = &draftedAt
article.StatusId = &statusIdOne