aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbstore/dbstore.go4
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