(ctx context.Context, ownerID uuid.UUID)
| 261 | } |
| 262 | |
| 263 | func (r *dynamicRenderer) getWorkspaceOwnerData(ctx context.Context, ownerID uuid.UUID) error { |
| 264 | if r.currentOwner != nil && r.currentOwner.ID == ownerID.String() { |
| 265 | return nil // already fetched |
| 266 | } |
| 267 | |
| 268 | owner, err := WorkspaceOwner(ctx, r.db, r.data.templateVersion.OrganizationID, ownerID) |
| 269 | if err != nil { |
| 270 | return err |
| 271 | } |
| 272 | |
| 273 | r.currentOwner = owner |
| 274 | return nil |
| 275 | } |
| 276 | |
| 277 | func (r *dynamicRenderer) Close() { |
| 278 | r.once.Do(r.close) |
no test coverage detected