adjust response to new model

This commit is contained in:
nochill 2023-03-19 18:17:01 +07:00
parent 3c8a613222
commit edddee0cb4

View File

@ -29,7 +29,7 @@ type userMerchantResponse struct {
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{
ID: user.ID,
IndexID: user.IndexID,