Skip to content

Commit

Permalink
Merge pull request #26 from NetSepio/rushikesh-client
Browse files Browse the repository at this point in the history
add chain name in client api
  • Loading branch information
Rushikeshnimkar authored Jun 13, 2024
2 parents 1fb1304 + f95ff73 commit 8f1459d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/v1/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"io"
"net/http"
"time"

"github.com/NetSepio/erebrus-gateway/api/middleware/auth/paseto"
"github.com/NetSepio/erebrus-gateway/config/dbconfig"
Expand Down Expand Up @@ -111,7 +110,7 @@ func RegisterClient(c *gin.Context) {
Region: node.Region,
Domain: node.Host,
UserId: userId,
CreatedAt: time.Now(),
Chain: node.Chain,
// CollectionId: req.CollectionId,
}
if err := db.Create(&dbEntry).Error; err != nil {
Expand Down
2 changes: 1 addition & 1 deletion models/erebrus.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ type Erebrus struct {
Domain string `json:"domain"`
CollectionId string `json:"collectionId"`
CreatedAt time.Time `json:"created_at"`
ChainName string `json:"chainName"`
Chain string `json:"chainName"`
}

0 comments on commit 8f1459d

Please sign in to comment.