diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-19 12:05:21 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-19 12:05:21 -0500 |
commit | 9fc9685dc711003ee9fe74154c8717e73d801aa2 (patch) | |
tree | d37318e420e8fe5af38f531eaa6f9ad1247ea748 | |
parent | c5919b1eb3624bc8dee8b0580969dc780fd9375d (diff) | |
download | cvez-9fc9685dc711003ee9fe74154c8717e73d801aa2.tar.bz2 cvez-9fc9685dc711003ee9fe74154c8717e73d801aa2.zip |
dbstore/dbstore.go: s/insert-description/insert-desc, shorten comment
-rw-r--r-- | dbstore/dbstore.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbstore/dbstore.go b/dbstore/dbstore.go index 2946d8f..dae747d 100644 --- a/dbstore/dbstore.go +++ b/dbstore/dbstore.go @@ -378,7 +378,7 @@ func (me DbStore) addDescriptions(ctx context.Context, tx Tx, ds []nvd_feed.Desc for i, d := range(ds) { // add description - rs, err := tx.Exec(ctx, "feed/insert-description", d.Lang, d.Value) + rs, err := tx.Exec(ctx, "feed/insert-desc", d.Lang, d.Value) if err != nil { return r, err } @@ -397,7 +397,7 @@ func (me DbStore) addDescriptions(ctx context.Context, tx Tx, ds []nvd_feed.Desc return r, nil } -// Add feed item and return item ID. +// Add CVE. func (me DbStore) addCve(ctx context.Context, tx Tx, itemId int64, cve nvd_feed.Cve) error { // cve ID var cveId int64 |