From 7151da1f3fff72925f61e2fb677ddf615eb8f0d7 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Thu, 5 Sep 2019 11:23:42 +0200 Subject: [PATCH] deduplicate tags --- src/main/kotlin/fr/dcproject/entity/Article.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/fr/dcproject/entity/Article.kt b/src/main/kotlin/fr/dcproject/entity/Article.kt index 37cee04..1e003cb 100644 --- a/src/main/kotlin/fr/dcproject/entity/Article.kt +++ b/src/main/kotlin/fr/dcproject/entity/Article.kt @@ -16,4 +16,8 @@ class Article( EntityVersioning by UuidEntityVersioning(), EntityCreatedAt by EntityCreatedAtImp(), EntityCreatedBy by EntityCreatedByImp(createdBy), - EntityDeletedAt by EntityDeletedAtImp() \ No newline at end of file + EntityDeletedAt by EntityDeletedAtImp() { + init { + tags = tags.distinct() + } +} \ No newline at end of file