Skip to content

Commit 7d38af6

Browse files
committed
fix lint
1 parent cd71a43 commit 7d38af6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

node-registrar/pkg/db/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Account struct {
1919
PublicKey string `gorm:"type:text;not null;unique" json:"public_key"`
2020
// Relations | likely we need to use OnDelete:RESTRICT (Prevent Twin deletion if farms exist)
2121
// @swagger:ignore
22-
Farms []Farm `gorm:"foreignKey:TwinID;references:TwinID;constraint:OnDelete:RESTRICT" json:"farms"`
22+
Farms []Farm `gorm:"foreignKey:TwinID;references:TwinID;constraint:OnDelete:RESTRICT" json:"farms"`
2323
}
2424

2525
type Farm struct {

node-registrar/pkg/server/handlers.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212

1313
"github.com/gin-gonic/gin"
1414
"github.com/lib/pq"
15-
"github.com/rs/zerolog/log"
1615
"github.com/threefoldtech/tfgrid4-sdk-go/node-registrar/pkg/db"
1716
)
1817

@@ -749,9 +748,7 @@ func (s *Server) getAccountHandler(c *gin.Context) {
749748
return
750749
}
751750

752-
log.Info().Any("farms", data).Send()
753751
delete(data, "farms")
754-
log.Info().Any("farms", data).Send()
755752
c.JSON(http.StatusCreated, data)
756753
return
757754
}

0 commit comments

Comments
 (0)