Page MenuHomePhabricator

D13498.id44649.diff
No OneTemporary

D13498.id44649.diff

diff --git a/services/identity/src/database.rs b/services/identity/src/database.rs
--- a/services/identity/src/database.rs
+++ b/services/identity/src/database.rs
@@ -588,16 +588,7 @@
/// Deletes all user data from DynamoDB. Returns device IDs
/// from user's device list.
#[tracing::instrument(skip_all)]
- pub async fn delete_user(
- &self,
- user_id: String,
- ) -> Result<Vec<String>, Error> {
- let device_ids = self
- .get_current_device_list(&user_id)
- .await?
- .map(|list| list.device_ids)
- .unwrap_or_default();
-
+ pub async fn delete_user(&self, user_id: String) -> Result<(), Error> {
// We must delete the one-time keys first because doing so requires device
// IDs from the devices table
debug!(user_id, "Attempting to delete user's one-time keys");
@@ -634,7 +625,7 @@
}
}?;
- Ok(device_ids)
+ Ok(())
}
pub async fn wallet_address_taken(

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 6:33 PM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580467
Default Alt Text
D13498.id44649.diff (941 B)

Event Timeline