( id: number, currentPassword: string | null = null )
| 43 | } |
| 44 | |
| 45 | export async function remove( |
| 46 | id: number, |
| 47 | currentPassword: string | null = null |
| 48 | ) { |
| 49 | await fetchURL(`/api/users/${id}`, { |
| 50 | method: "DELETE", |
| 51 | body: JSON.stringify({ |
| 52 | ...(currentPassword != null ? { current_password: currentPassword } : {}), |
| 53 | }), |
| 54 | }); |
| 55 | } |
nothing calls this directly
no test coverage detected