Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3516301
D8402.id28718.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
977 B
Referenced Files
None
Subscribers
None
D8402.id28718.diff
View Options
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
@@ -523,7 +523,21 @@
);
}
let first_item = items[0].clone();
- Ok(Some(first_item))
+ let user_id = first_item
+ .get(USERS_TABLE_PARTITION_KEY)
+ .ok_or(DBItemError {
+ attribute_name: USERS_TABLE_PARTITION_KEY,
+ attribute_value: None,
+ attribute_error: DBItemAttributeError::Missing,
+ })?
+ .as_s()
+ .map_err(|_| DBItemError {
+ attribute_name: USERS_TABLE_PARTITION_KEY,
+ attribute_value: first_item.get(USERS_TABLE_PARTITION_KEY).cloned(),
+ attribute_error: DBItemAttributeError::IncorrectType,
+ })?;
+ let result = self.get_item_from_users_table(user_id).await?;
+ Ok(result.item)
}
Ok(_) => {
info!(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 1:33 PM (18 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694795
Default Alt Text
D8402.id28718.diff (977 B)
Attached To
Mode
D8402: [Identity] Fix opaque login
Attached
Detach File
Event Timeline
Log In to Comment