fix: improvement logs and record news access
This commit is contained in:
@@ -6,7 +6,8 @@ import (
|
||||
)
|
||||
|
||||
func (i *impl) CreateLogAds(spec logsdomain.LogsSpec) error {
|
||||
if err := i.logsRepo.CreateLogAds(spec); err != nil {
|
||||
spec.Category = "ads"
|
||||
if err := i.logsRepo.CreateLog(spec); err != nil {
|
||||
return fmt.Errorf("failed to create ads log: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user