Method
delete_account
(
&self,
ctx: &Context<'_>,
input: DeleteAccountInput,
)
Source from the content-addressed store, hash-verified
| 263 | } |
| 264 | |
| 265 | async fn delete_account( |
| 266 | &self, |
| 267 | ctx: &Context<'_>, |
| 268 | input: DeleteAccountInput, |
| 269 | ) -> Result<DeleteAccountPayload> { |
| 270 | let DeleteAccountInput { |
| 271 | user_id, |
| 272 | client_mutation_id, |
| 273 | } = input; |
| 274 | |
| 275 | let psql::DeleteAccountResult { |
| 276 | alerts, |
| 277 | deleted_user_id, |
| 278 | } = ctx |
| 279 | .data_unchecked::<Store>() |
| 280 | .delete_account(user_id.to_string()) |
| 281 | .await?; |
| 282 | |
| 283 | Ok(DeleteAccountPayload { |
| 284 | alerts: alerts.iter().map(alert::Alert::from).collect_vec(), |
| 285 | deleted_user_id: ID(deleted_user_id), |
| 286 | client_mutation_id, |
| 287 | }) |
| 288 | } |
| 289 | |
| 290 | async fn delete_link( |
| 291 | &self, |
Callers
nothing calls this directly
Tested by
no test coverage detected