Compare commits

..

No commits in common. "18a68b452fd860e35f16f969401cc91dd569f42e" and "8bb232830770e5bfed642942e8b35f1be3e555d2" have entirely different histories.

View File

@ -120,7 +120,7 @@ func UpdatePostReport(ctx context.Context, postReport models.PostReport) error {
ReportState: postReport.ReportState,
}
result := client.WithContext(ctx).Model(&updatePost).Updates(updatePost)
result := client.WithContext(ctx).Model(&updatePost).Update("deleted_at", gorm.DeletedAt{})
if result.Error != nil {
if errors.Is(result.Error, gorm.ErrRecordNotFound) {
return utils.HandleError(ctx, span, localLogger, &otterError.Database{Reason: otterError.NoDataFound})