Skip to content

Commit

Permalink
[fix] 카운트 수 수정 (#139)
Browse files Browse the repository at this point in the history
* fix: 카운트 수 수정

* feat: request 임시로깅
  • Loading branch information
jimin3263 authored Aug 25, 2024
1 parent d5cfe33 commit c0cd1a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import com.pokit.common.exception.NotFoundCustomException
import com.pokit.token.exception.AuthErrorCode
import com.pokit.user.exception.UserErrorCode
import com.pokit.user.port.out.UserPort
import io.github.oshai.kotlinlogging.KotlinLogging
import jakarta.servlet.FilterChain
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.pokit.auth.interceptor

import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.InterceptorRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer

@Configuration
class WebConfig(
private val requestLoggingInterceptor: RequestLoggingInterceptor
) : WebMvcConfigurer {
override fun addInterceptors(registry: InterceptorRegistry) {
registry.addInterceptor(requestLoggingInterceptor)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DailyContentService(
dailyContentPort.loadByUserId(userId)

private fun getRandomIds(ids: List<Long>): List<Long> {
if (ids.isEmpty() || ids.size <= MIN_CONTENT_COUNT) {
if (ids.isEmpty() || ids.size < MIN_CONTENT_COUNT) {
return emptyList()
}

Expand Down

0 comments on commit c0cd1a3

Please sign in to comment.