add user login
This commit is contained in:
@@ -49,6 +49,9 @@ func (h *PaymentMethodHandler) CreatePaymentMethod(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
req.OrganizationID = contextInfo.OrganizationID
|
||||
req.OutletID = contextInfo.OutletID
|
||||
|
||||
paymentMethodResponse := h.paymentMethodService.CreatePaymentMethod(ctx, contextInfo, &req)
|
||||
if paymentMethodResponse.HasErrors() {
|
||||
errorResp := paymentMethodResponse.GetErrors()[0]
|
||||
|
||||
@@ -75,7 +75,6 @@ func (h *UnitHandler) GetAll(c *gin.Context) {
|
||||
ctx := c.Request.Context()
|
||||
contextInfo := appcontext.FromGinContext(ctx)
|
||||
|
||||
// Get query parameters
|
||||
pageStr := c.DefaultQuery("page", "1")
|
||||
limitStr := c.DefaultQuery("limit", "10")
|
||||
search := c.Query("search")
|
||||
|
||||
Reference in New Issue
Block a user