* Get a join request by ID
(id: string)
| 68 | * Get a join request by ID |
| 69 | */ |
| 70 | async getRequest(id: string): Promise<JoinRequest | null> { |
| 71 | const result = await query<JoinRequest>( |
| 72 | 'SELECT * FROM organization_join_requests WHERE id = $1', |
| 73 | [id] |
| 74 | ); |
| 75 | return result.rows[0] || null; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Get pending request for a user and organization |
no outgoing calls
no test coverage detected