refactor user defined keypad

This commit is contained in:
2024-08-24 21:02:50 -05:00
parent 1a7dc45ab9
commit 3bf2b4d71f
19 changed files with 273 additions and 190 deletions

View File

@@ -46,7 +46,7 @@ func (h *NKodeHandler) CreateNewCustomerHandler(w http.ResponseWriter, r *http.R
log.Fatal(err)
return
}
customerId, err := h.Api.CreateNewCustomer(customerPost.KeypadSize, customerPost.NKodePolicy)
customerId, err := h.Api.CreateNewCustomer(customerPost.NKodePolicy)
if err != nil {
internalServerErrorHandler(w)
log.Fatal(err)
@@ -84,7 +84,7 @@ func (h *NKodeHandler) GenerateSignupInterfaceHandler(w http.ResponseWriter, r *
log.Fatal(err)
return
}
resp, err := h.Api.GenerateSignupInterface(signupPost.CustomerId)
resp, err := h.Api.GenerateSignupInterface(signupPost.CustomerId, m.KeypadDefault)
if err != nil {
internalServerErrorHandler(w)
log.Fatal(err)