MCPcopy Create free account
hub / github.com/emwalker/digraph / delete_account

Method delete_account

backend/src/graphql/mutation.rs:265–288  ·  view source on GitHub ↗
(
        &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

Calls 2

IDFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected