Skip to content

Commit

Permalink
fix redis jvn prefix (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadayuki-matsuno authored and kotakanbe committed Jul 28, 2017
1 parent 89e381b commit b3b5265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (r *RedisDriver) insertIntoJvn(cves []models.CveDetail) error {
return fmt.Errorf("Failed to marshal json. err: %s", err)
}
refreshedJvns = append(refreshedJvns, c.CveID)
if result := pipe.HSet(c.CveID, "Jvn", string(jj)); result.Err() != nil {
if result := pipe.HSet(hashKeyPrefix+c.CveID, "Jvn", string(jj)); result.Err() != nil {
return fmt.Errorf("Failed to HSet CVE. err: %s", result.Err())
}

Expand Down

0 comments on commit b3b5265

Please sign in to comment.