Fix Split Bill
This commit is contained in:
@@ -31,10 +31,8 @@ func NewOutletProcessorImpl(outletRepo *repository.OutletRepositoryImpl) *Outlet
|
||||
}
|
||||
|
||||
func (p *OutletProcessorImpl) ListOutletsByOrganization(ctx context.Context, organizationID uuid.UUID, page, limit int) ([]*models.OutletResponse, int64, error) {
|
||||
|
||||
offset := (page - 1) * limit
|
||||
|
||||
// Get outlets with pagination
|
||||
outlets, total, err := p.outletRepo.GetByOrganizationIDWithPagination(ctx, organizationID, limit, offset)
|
||||
if err != nil {
|
||||
return nil, 0, fmt.Errorf("failed to get outlets: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user