Skip to content

Commit ffd0c28

Browse files
authored
Merge pull request #1 from huoxito/proper-hash
proper hash for Client#update_item
2 parents 9cd59a4 + d0814d2 commit ffd0c28

File tree

1 file changed

+3
-3
lines changed
  • lib/aws/session_store/dynamo_db/locking

1 file changed

+3
-3
lines changed

lib/aws/session_store/dynamo_db/locking/base.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def unpack_data(packed_data)
101101
def table_opts(sid)
102102
{
103103
:table_name => @config.table_name,
104-
:key => {@config.table_key => {:s => sid}}
104+
:key => { @config.table_key => sid }
105105
}
106106
end
107107

@@ -116,7 +116,7 @@ def attr_updts(env, session, add_attrs = {})
116116

117117
# Update client with current time attribute.
118118
def updated_at
119-
{ :value => {:n => "#{(Time.now).to_f}"}, :action => "PUT" }
119+
{ :value => "#{(Time.now).to_f}", :action => "PUT" }
120120
end
121121

122122
# Attribute for creation of session.
@@ -132,7 +132,7 @@ def updated_attr
132132
end
133133

134134
def data_attr(session)
135-
{ "data" => {:value => {:s => session}, :action => "PUT"} }
135+
{ "data" => {:value => session, :action => "PUT"} }
136136
end
137137

138138
# Determine if data has been manipulated

0 commit comments

Comments
 (0)