Skip to content

Commit

Permalink
Refactor cache.go to fix data assignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Walkmana-25 committed Oct 6, 2024
1 parent 3dbe153 commit 2bd3aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func CreateCache(redisClient *redis.Client, anemosData []interface{}) error {
var object_type EventType = EventType(dataMap["object_type"].(string))

// objectidをキーにして、データを保存する
target_data[object_id] = dataMap["data"].(string)
target_data[object_id] = data.(string)

// イベントタイプをキーにして、objectidを保存する
if _, exists := weekly_data[object_type]; !exists {
Expand Down

0 comments on commit 2bd3aca

Please sign in to comment.