Skip to content

Commit

Permalink
api: add merge-entities flag in graph add
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r committed Sep 21, 2023
1 parent 1181c7e commit 4a42868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func DeploySubgraph(c *gin.Context) {
}
os.Chdir(req.Folder)
for i := 1; i < len(req.Contracts); i++ {
cmd := exec.Command("graph", "add", req.Contracts[i].Address, "--contract-name", req.Contracts[i].Name, "--start-block", strconv.Itoa(req.Contracts[i].BlockNumber))
cmd := exec.Command("graph", "add", req.Contracts[i].Address, "--contract-name", req.Contracts[i].Name, "--start-block", strconv.Itoa(req.Contracts[i].BlockNumber), "--merge-entities")
err := cmd.Start()
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
Expand Down

0 comments on commit 4a42868

Please sign in to comment.