diff options
Diffstat (limited to 'dbstore')
-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 bf66fa4..7132658 100644 --- a/dbstore/dbstore.go +++ b/dbstore/dbstore.go @@ -664,7 +664,7 @@ func (me DbStore) addFeed(ctx context.Context, tx Tx, feed nvd_feed.Feed) (int64 } // query IDs used by AddCpeMatches() -var addCveFeedQueryIds = []string { +var addCveFeedsQueryIds = []string { "feed/insert", "feed/insert-assigner", "feed/insert-cve", @@ -696,7 +696,7 @@ func (me DbStore) AddCveFeeds(ctx context.Context, feeds []nvd_feed.Feed) ([]int } // begin transaction - err := me.Tx(ctx, addCveFeedQueryIds, func(tx Tx) error { + err := me.Tx(ctx, addCveFeedsQueryIds, func(tx Tx) error { for i, feed := range(feeds) { // add feed, get feed ID if id, err := me.addFeed(ctx, tx, feed); err != nil { |