Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3380846
D11678.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
584 B
Referenced Files
None
Subscribers
None
D11678.diff
View Options
diff --git a/services/identity/src/database/one_time_keys.rs b/services/identity/src/database/one_time_keys.rs
--- a/services/identity/src/database/one_time_keys.rs
+++ b/services/identity/src/database/one_time_keys.rs
@@ -97,6 +97,8 @@
.table_name(otk_table::NAME)
.key(otk_table::PARTITION_KEY, AttributeValue::S(pk))
.key(otk_table::SORT_KEY, AttributeValue::S(sk))
+ .condition_expression("attribute_exists(#otk)")
+ .expression_attribute_names("#otk", otk_table::ATTR_ONE_TIME_KEY)
.build();
let delete_otk_operation =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 2:42 AM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595499
Default Alt Text
D11678.diff (584 B)
Attached To
Mode
D11678: [identity] make sure otk exists when we delete it
Attached
Detach File
Event Timeline
Log In to Comment