From dec05be7f8f05c5b5488c3fcc4171f62ebe4cec6 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sun, 3 Jun 2018 20:14:11 +0530 Subject: [PATCH] domain_new: create domains with ownerHex --- api/domain_new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/domain_new.go b/api/domain_new.go index d7c8a71..3da5370 100644 --- a/api/domain_new.go +++ b/api/domain_new.go @@ -45,7 +45,7 @@ func domainNewHandler(w http.ResponseWriter, r *http.Request) { domain := stripDomain(*x.Domain) - if err = domainNew(o.Email, *x.Name, domain); err != nil { + if err = domainNew(o.OwnerHex, *x.Name, domain); err != nil { writeBody(w, response{"success": false, "message": err.Error()}) return }