dmp-dynamo_adapter 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dmp/dynamo_adapter.rb +1 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c92cdfbca935a7f55b15a3e97c8da2fa99a76bd7a3f8800e28fc898a2ff942ef
4
- data.tar.gz: 7785c5585152dc251d08d0298ba3e961c3480f4a734eb2f67e0c8fc197e23e0d
3
+ metadata.gz: e43418981a0779208d1a8a30b20c49bc1b7694170dd750d21f0a55397dd26270
4
+ data.tar.gz: 8a31a47ea2e473a3297050cb3f3f6499ce1f62f220c8b25014f775153b542fbe
5
5
  SHA512:
6
- metadata.gz: d3b1f1e2d7701b9589c77c4ac9789f078ee4b78c67028252c957e3fcc3599158cc2e48afacce4b8fb6819028aa01a8a1156066a7073bec9f1e8634337a38bcc9
7
- data.tar.gz: 66ad68df01a6a83ebaca5c8e178b931d540547542f9ae21151fe9d084e4dbd2cf0d1d96b00a3675d2f7d648110a00fe2bbaa0052198e1fb6f0f6d769c258a0e9
6
+ metadata.gz: a4165f8e97a095e1390a7e8338a5b8fbfb56e40735a43432a1ace264d7ae2f6e9d093d7ab02efec61ef7f30a7858178ca3eb956d7e727a58a847d7566bc45580
7
+ data.tar.gz: 18d6c30540bef144f768034c3c35e05f43d2a892f49bd0b1eafc6bcdc3b332efc6e3fcaa903d145197c6528009ca93deff9c2daab016ba920de8baed8d7d051d
@@ -285,8 +285,7 @@ pp response.data
285
285
  return { status: 404, error: MSG_NOT_FOUND } if response.nil? || response[:count] <= 0
286
286
 
287
287
  # If we got a hit, fetch the DMP and return it.
288
- find_by_pk(p_key: response.fetch(:last_evaluated_key, {})[:hash_key_element],
289
- s_key: response.fetch(:last_evaluated_key, {})[:range_key_element])
288
+ find_by_pk(p_key: response[:items].first['PK'], s_key: response[:items].first['SK'])
290
289
  rescue Aws::Errors::ServiceError => e
291
290
  { status: 500, error: "#{MSG_DEFAULT} - #{e.message}" }
292
291
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dmp-dynamo_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - briri