Fix tags are not searched correctly when adding

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/9/head
trivernis 3 years ago
parent 0b511bb54f
commit d6372d6e16
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -132,6 +132,8 @@ fn build_tag_condition(tag: AddTagDto) -> Condition {
.add(tag::Column::Name.eq(tag.name)) .add(tag::Column::Name.eq(tag.name))
.add(namespace::Column::Name.eq(namespace)) .add(namespace::Column::Name.eq(namespace))
} else { } else {
Condition::all().add(tag::Column::Name.eq(tag.name)) Condition::all()
.add(tag::Column::Name.eq(tag.name))
.add(tag::Column::NamespaceId.is_null())
} }
} }

Loading…
Cancel
Save