From 3771587e55fcc7aa99454780b05f936566b46cf1 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Mon, 19 Oct 2020 00:29:53 +0200 Subject: [PATCH] Find duplicate tags without category --- modules/store/src/main/scala/docspell/store/records/RTag.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/store/src/main/scala/docspell/store/records/RTag.scala b/modules/store/src/main/scala/docspell/store/records/RTag.scala index 71b7b1f0..e0c1a56a 100644 --- a/modules/store/src/main/scala/docspell/store/records/RTag.scala +++ b/modules/store/src/main/scala/docspell/store/records/RTag.scala @@ -69,7 +69,7 @@ object RTag { val sql = selectCount( tid, table, - and(cid.is(tag.collective), name.is(tag.name), category.is(tag.category)) + and(cid.is(tag.collective), name.is(tag.name)) ) sql.query[Int].unique.map(_ > 0) }