package logssvc

import (
	"fmt"
	logsdomain "legalgo-BE-go/internal/domain/logs"
)

func (i *impl) CreateLogNews(spec logsdomain.LogsSpec) error {
	spec.Category = "news"
	if err := i.logsRepo.CreateLog(spec); err != nil {
		return fmt.Errorf("failed to create news log: %v", err)
	}

	return nil
}
