Skip to content

Commit

Permalink
[temp]: log
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r committed Feb 24, 2024
1 parent 6ef557a commit f70091c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1/deployer/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package deployer
import (
"bytes"
"encoding/json"
"fmt"
"net/http"

"github.com/NetSepio/sotreus-gateway/api/middleware/auth/paseto"
Expand All @@ -26,6 +27,7 @@ func ApplyRoutes(r *gin.RouterGroup) {
func Deploy(c *gin.Context) {
db := dbconfig.GetDb()
walletAddress := c.GetString(paseto.CTX_WALLET_ADDRES)
fmt.Println(walletAddress)

var count int64
err := db.Model(&models.Sotreus{}).Where("wallet_address = ?", walletAddress).Find(&models.Sotreus{}).Count(&count).Error
Expand Down

0 comments on commit f70091c

Please sign in to comment.