+ nlp
This commit is contained in:
@@ -140,7 +140,7 @@ class SpaceService(
|
||||
|
||||
launch {
|
||||
val categories =
|
||||
categoryService.getCategories(objectId.toString(), null, "name", "ASC").awaitFirstOrNull().orEmpty()
|
||||
categoryService.getCategories(objectId.toString(), null, "name", "ASC")
|
||||
categoryRepo.deleteAll(categories).awaitFirstOrNull()
|
||||
}
|
||||
|
||||
@@ -280,7 +280,6 @@ class SpaceService(
|
||||
val existedTag = findTag(space, tagCode) ?: throw NoSuchElementException("Tag with code $tagCode not found")
|
||||
val categoriesWithTag =
|
||||
categoryService.getCategories(space.id!!, sortBy = "name", direction = "ASC", tagCode = existedTag.code)
|
||||
.awaitSingleOrNull().orEmpty()
|
||||
categoriesWithTag.map { cat ->
|
||||
cat.tags.removeIf { it.code == tagCode } // Изменяем список тегов
|
||||
cat
|
||||
|
||||
Reference in New Issue
Block a user