Skip to content

Commit 6445b3e

Browse files
committed
fix: GraphQL 쿼리 시간 범위 수정
GraphQL 쿼리에서 `to` 변수에 24시간을 더하는 로직 제거 - 기존에는 `to` 시간에 24시간을 더해서 하루 뒤까지 데이터를 가져오도록 설정되어 있었음 - 이로 인해 의도하지 않은 데이터가 포함될 수 있었음 - 쿼리의 `to` 변수가 정확한 시간을 나타내도록 수정하여 올바른 데이터를 가져오도록 함
1 parent 612568e commit 6445b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func getContributions(c *gin.Context) {
211211

212212
variables := map[string]interface{}{
213213
"from": from.Format(time.RFC3339),
214-
"to": to.Add(time.Hour * 24).Format(time.RFC3339),
214+
"to": to.Format(time.RFC3339),
215215
}
216216

217217
req, err := client.NewRequest("POST", "graphql", map[string]interface{}{

0 commit comments

Comments
 (0)