diff options
Diffstat (limited to 'internal/db/bundb/bundb.go')
-rw-r--r-- | internal/db/bundb/bundb.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go index 784a7d443..191350d06 100644 --- a/internal/db/bundb/bundb.go +++ b/internal/db/bundb/bundb.go @@ -409,15 +409,17 @@ func (ps *bunDBService) TagStringsToTags(ctx context.Context, tags []string, ori tag.FirstSeenFromAccountID = originAccountID tag.CreatedAt = time.Now() tag.UpdatedAt = time.Now() - tag.Useable = true - tag.Listable = true + useable := true + tag.Useable = &useable + listable := true + tag.Listable = &listable } else { return nil, fmt.Errorf("error getting tag with name %s: %s", t, err) } } // bail already if the tag isn't useable - if !tag.Useable { + if !*tag.Useable { continue } tag.LastStatusAt = time.Now() |