(ctx context.Context, afterName string, limit int)
| 57 | } |
| 58 | |
| 59 | func (c *connection) FindOrganizations(ctx context.Context, afterName string, limit int) ([]*database.Organization, error) { |
| 60 | var res []*database.Organization |
| 61 | err := c.getDB(ctx).SelectContext(ctx, &res, "SELECT * FROM orgs WHERE lower(name) > lower($1) ORDER BY lower(name) LIMIT $2", afterName, limit) |
| 62 | if err != nil { |
| 63 | return nil, parseErr("orgs", err) |
| 64 | } |
| 65 | return res, nil |
| 66 | } |
| 67 | |
| 68 | func (c *connection) FindOrganizationsForUser(ctx context.Context, userID, afterName string, limit int) ([]*database.Organization, error) { |
| 69 | var res []*database.Organization |
nothing calls this directly
no test coverage detected