adjust response to new model
This commit is contained in:
parent
3c8a613222
commit
edddee0cb4
@ -29,7 +29,7 @@ type userMerchantResponse struct {
|
|||||||
Outlet db.Merchant `json:"outlet"`
|
Outlet db.Merchant `json:"outlet"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func newUserMerchantResponse(user db.User, merchant db.Merchant) userMerchantResponse {
|
func newUserMerchantResponse(user db.GetUserByEmailRow, merchant db.Merchant) userMerchantResponse {
|
||||||
return userMerchantResponse{
|
return userMerchantResponse{
|
||||||
ID: user.ID,
|
ID: user.ID,
|
||||||
IndexID: user.IndexID,
|
IndexID: user.IndexID,
|
||||||
|
Loading…
Reference in New Issue
Block a user