aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-03-15 08:12:25 -0400
committerPaul Duncan <pabs@pablotron.org>2022-03-15 08:12:25 -0400
commit23609c32a69f57bef4de6077b1d4004961b29277 (patch)
tree8104928871f43640db772ad9a73f4dfe063ec238
parenta00d4d0fd4c7e9b4e5ecf97e3bb978f680541dba (diff)
downloadcvez-23609c32a69f57bef4de6077b1d4004961b29277.tar.bz2
cvez-23609c32a69f57bef4de6077b1d4004961b29277.zip
dbstore/dbstore.go: fix query IDs variable name
-rw-r--r--dbstore/dbstore.go4
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 {