File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type Account struct {
19
19
PublicKey string `gorm:"type:text;not null;unique" json:"public_key"`
20
20
// Relations | likely we need to use OnDelete:RESTRICT (Prevent Twin deletion if farms exist)
21
21
// @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"`
23
23
}
24
24
25
25
type Farm struct {
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
13
13
"github.com/gin-gonic/gin"
14
14
"github.com/lib/pq"
15
- "github.com/rs/zerolog/log"
16
15
"github.com/threefoldtech/tfgrid4-sdk-go/node-registrar/pkg/db"
17
16
)
18
17
@@ -749,9 +748,7 @@ func (s *Server) getAccountHandler(c *gin.Context) {
749
748
return
750
749
}
751
750
752
- log .Info ().Any ("farms" , data ).Send ()
753
751
delete (data , "farms" )
754
- log .Info ().Any ("farms" , data ).Send ()
755
752
c .JSON (http .StatusCreated , data )
756
753
return
757
754
}
You can’t perform that action at this time.
0 commit comments