From e97205a8fa17f8026b30fb9415a77d68ed20ccef Mon Sep 17 00:00:00 2001 From: artaasadi Date: Sun, 1 Dec 2024 18:30:44 +0100 Subject: [PATCH] fix: fix publish queries in inventory --- jobs/post-install-job/job/migrations/inventory/migrator.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/jobs/post-install-job/job/migrations/inventory/migrator.go b/jobs/post-install-job/job/migrations/inventory/migrator.go index 52c1aeaca..aaac98fbe 100644 --- a/jobs/post-install-job/job/migrations/inventory/migrator.go +++ b/jobs/post-install-job/job/migrations/inventory/migrator.go @@ -310,13 +310,6 @@ func populateFinderItem(logger *zap.Logger, tx *gorm.DB, path string, info fs.Fi } } } - // logger.Info("inserted tags", zap.String("id", id)) - err = tx.Commit().Error - if err != nil { - logger.Error("failure in commit", zap.Error(err)) - return err - } - // logger.Info("commit finish", zap.String("id", id)) return nil }