diff --git a/core/services/tag_service.go b/core/services/tag_service.go index 6075039..2d9602a 100644 --- a/core/services/tag_service.go +++ b/core/services/tag_service.go @@ -2,6 +2,7 @@ package services import ( "context" + "log/slog" "github.com/KristianJBorgwarth/dendrite.daemon/core/models" "github.com/KristianJBorgwarth/dendrite.daemon/core/utils" @@ -28,6 +29,8 @@ func (s *tagService) CreateTags(ctx context.Context, dbCtx persistence.IDbContex return nil, err } + slog.Debug("Existing tags", "names", names, "existingTags", existingTags) + newTags := utils.Filter(names, func(name string) bool { for _, tag := range existingTags { if tag.Name() == name { @@ -43,6 +46,8 @@ func (s *tagService) CreateTags(ctx context.Context, dbCtx persistence.IDbContex return nil, err } + slog.Debug("Created new tags", "newTags", newTagModels) + tags := append(existingTags, newTagModels...) return tags, nil diff --git a/dendrite b/dendrite index a36c857..fbe9e89 100755 Binary files a/dendrite and b/dendrite differ