fix: improvement logs and record news access

This commit is contained in:
ericprd
2025-03-20 11:11:08 +08:00
parent 290d7f6701
commit d8f6968f64
13 changed files with 81 additions and 25 deletions
+2 -1
View File
@@ -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)
}