From 23609c32a69f57bef4de6077b1d4004961b29277 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 15 Mar 2022 08:12:25 -0400 Subject: dbstore/dbstore.go: fix query IDs variable name --- dbstore/dbstore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbstore') 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 { -- cgit v1.2.3