Skip to content

Commit

Permalink
♻️ :: inmemory
Browse files Browse the repository at this point in the history
  • Loading branch information
lyutvs committed May 24, 2023
1 parent 851b59d commit 1c158b8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class InMemorySettingRepository(
return categoryIds.map { findSetting(userId, it) }.any { it != null }
}

override fun queryUserIdSetting(userId: UUID): List<Setting> {
return settingMap.values.filter { it.userId == userId }
}

private fun findSetting(userId: UUID, categoryId: UUID): Setting? {
return settingMap
Expand Down

0 comments on commit 1c158b8

Please sign in to comment.