Skip to content

Commit 8cf69e3

Browse files
QinYuuuuRader
authored andcommitted
remove check of tag.builtin in tagStore.FindOrCreate
1 parent c533f58 commit 8cf69e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/store/database/tag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func (ts *tagStoreImpl) FindOrCreate(ctx context.Context, tag Tag) (*Tag, error)
380380
var resTag Tag
381381
err := ts.db.Operator.Core.NewSelect().
382382
Model(&resTag).
383-
Where("name = ? and category = ? and built_in = ? and scope = ?", tag.Name, tag.Category, tag.BuiltIn, tag.Scope).
383+
Where("name = ? and category = ? and scope = ?", tag.Name, tag.Category, tag.Scope).
384384
Scan(ctx)
385385
if err == nil {
386386
return &resTag, nil

0 commit comments

Comments
 (0)