(client *ent.Client, orgID uuid.UUID)
| 163 | } |
| 164 | |
| 165 | func orgScopedQuery(client *ent.Client, orgID uuid.UUID) *ent.OrganizationQuery { |
| 166 | return client.Organization.Query().Where(organization.ID(orgID), organization.DeletedAtIsNil()) |
| 167 | } |
| 168 | |
| 169 | // WithTx initiates a transaction and wraps the DB function |
| 170 | func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error { |
no test coverage detected