Add organizatin ID
This commit is contained in:
parent
1c7f7feb2e
commit
451697b783
@ -133,15 +133,16 @@ func (h *TableHandler) Delete(c *gin.Context) {
|
||||
|
||||
func (h *TableHandler) List(c *gin.Context) {
|
||||
ctx := c.Request.Context()
|
||||
contextInfo := appcontext.FromGinContext(ctx)
|
||||
|
||||
query := contract.ListTablesQuery{
|
||||
OrganizationID: c.Query("organization_id"),
|
||||
OrganizationID: contextInfo.OrganizationID.String(),
|
||||
OutletID: c.Query("outlet_id"),
|
||||
Status: c.Query("status"),
|
||||
IsActive: c.Query("is_active"),
|
||||
Search: c.Query("search"),
|
||||
Page: 1,
|
||||
Limit: 10,
|
||||
Limit: 100,
|
||||
}
|
||||
|
||||
if pageStr := c.Query("page"); pageStr != "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user