Skip to content

Commit

Permalink
Merge pull request #1996 from slntopp/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
coddmeistr authored Feb 10, 2025
2 parents 26af7b1 + 1122063 commit 5c1a5cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pkg/graph/migrations/invoices.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ func MigrateOldInvoicesToNew(log *zap.Logger, invoices driver.Collection, transa
invTypes := make(map[string]string)
file, err := os.Open(whmcsInvoicesFile)
if err != nil {
log.Fatal("Error migrating old invoices to new", zap.Error(err))
log.Error("Error migrating old invoices to new", zap.Error(err))
return
}
defer file.Close()
csvReader := csv.NewReader(file)
Expand All @@ -115,7 +116,8 @@ func MigrateOldInvoicesToNew(log *zap.Logger, invoices driver.Collection, transa
invInstances := make(map[string][]string)
file, err = os.Open(whmcsInstancesFile)
if err != nil {
log.Fatal("Error migrating old invoices to new", zap.Error(err))
log.Error("Error migrating old invoices to new", zap.Error(err))
return
}
defer file.Close()
csvReader = csv.NewReader(file)
Expand Down
1 change: 0 additions & 1 deletion pkg/registry/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ func (s *AccountsServiceServer) Get(ctx context.Context, request *accountspb.Get

log.Debug("Retrieving account", zap.String("uuid", requested))
acc, err := s.ctrl.GetWithAccess(ctx, requestorId, requested)

if err != nil || acc.Access == nil {
log.Debug("Error getting account", zap.Any("error", err))
return nil, status.Error(codes.NotFound, "Account not found")
Expand Down

0 comments on commit 5c1a5cd

Please sign in to comment.