From edddee0cb475419ddbd12c1208bfd9eaee28ab52 Mon Sep 17 00:00:00 2001 From: nochill Date: Sun, 19 Mar 2023 18:17:01 +0700 Subject: [PATCH] adjust response to new model --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/user.go b/api/user.go index 91da2d5..4d62a6c 100644 --- a/api/user.go +++ b/api/user.go @@ -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,