uc3-dmp-id 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/finder.rb +2 -2
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4739bcdc46f0ec109252c1c0917fc772c5447b6fd910cdeddfce71390296dc33
|
4
|
+
data.tar.gz: 5009a66acd32dc4be8f7c1e43a377df5e8210626d3162e02bca204334bb0f348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d7ca8df8ce4936b5c97a9199a154ff442a76a6b6255a51f9feec9799b90ed6c596243205fd4bf1ce9b9ea8bb17341df103d8d4c5f3490a1f48ffccc06bf6772
|
7
|
+
data.tar.gz: 33f6cd353c07c4432945ed93384510497cb957a62907bedfafd51b2cc3e6fdb577396607fb26dc536001eb01ee409e7ee853822ce2cbc62e3e0c644dadcf46b9
|
data/lib/uc3-dmp-id/finder.rb
CHANGED
@@ -64,14 +64,14 @@ module Uc3DmpId
|
|
64
64
|
|
65
65
|
# Fetch just the PK to see if a record exists
|
66
66
|
# -------------------------------------------------------------------------
|
67
|
-
def exists?(client:, p_key:)
|
67
|
+
def exists?(client:, p_key:, s_key: Helper::DMP_LATEST_VERSION)
|
68
68
|
raise FinderError, MSG_MISSING_PK if p_key.nil?
|
69
69
|
|
70
70
|
client = client.nil? ? Uc3DmpDynamo::Client.new(debug: debug) : client
|
71
71
|
resp = client.get_item(
|
72
72
|
key: {
|
73
73
|
PK: Helper.append_pk_prefix(p_key: p_key),
|
74
|
-
SK: s_key
|
74
|
+
SK: s_key
|
75
75
|
},
|
76
76
|
projection_expression: 'PK'
|
77
77
|
)
|
data/lib/uc3-dmp-id/version.rb
CHANGED