(userId: string)
| 183 | } |
| 184 | |
| 185 | async deleteUser(userId: string): Promise<RpcResult<{ deletedRegistrations: number }>> { |
| 186 | return rpcCatchAll(async () => { |
| 187 | const stub = this.getClientStub(userId); |
| 188 | const result = await stub.destroyAll(); |
| 189 | return { ok: true as const, data: result }; |
| 190 | }); |
| 191 | } |
| 192 | |
| 193 | async undeleteUser(userId: string): Promise<RpcResult<{ restoredRegistrations: number }>> { |
| 194 | return rpcCatchAll(async () => { |
no test coverage detected