uc3-dmp-provenance 0.0.6 → 0.0.8
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-provenance/finder.rb +3 -3
- data/lib/uc3-dmp-provenance/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: 788fc2419d524535f7b3e77c1846ee220e889dd6fca3cca4fc4c12113bb3f77e
|
4
|
+
data.tar.gz: 594e989df8859dd31773032d3070c80f5a538de177c74473ee506c9084d5dec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 670621fea7e20464e8f0aa362d261620f051f2b91961f2bf8a2cb0286fc246c450e6e473265b89bf414d6a9b1d64b7b3c260f06bbf1b64c78e240d8ebeffc079
|
7
|
+
data.tar.gz: 2ff00d8798eb466a83f6074c5c242e843ce140888d1e65421d3102188ba9ea7efe803a3b427738338a9cc9d7e69a551b4b3d71c69402def40d47e1a2113566fd
|
@@ -34,7 +34,7 @@ module Uc3DmpProvenance
|
|
34
34
|
client_name = _cognito_client_id_to_name(claim: identity)
|
35
35
|
|
36
36
|
resp = client.get_item(
|
37
|
-
key: { PK: Helper.append_pk_prefix(client_name), SK: Helper::SK_PROVENANCE_PREFIX }
|
37
|
+
key: { PK: Helper.append_pk_prefix(provenance: client_name), SK: Helper::SK_PROVENANCE_PREFIX }
|
38
38
|
)
|
39
39
|
resp.nil? || resp.empty? ? nil : resp
|
40
40
|
end
|
@@ -45,9 +45,9 @@ module Uc3DmpProvenance
|
|
45
45
|
def from_pk(pk:)
|
46
46
|
return nil if pk.nil?
|
47
47
|
|
48
|
-
pk = Helper.append_pk_prefix(pk)
|
48
|
+
pk = Helper.append_pk_prefix(provenance: pk)
|
49
49
|
resp = client.get_item(
|
50
|
-
key: { PK: Helper.append_pk_prefix(pk), SK: Helper::SK_PROVENANCE_PREFIX }
|
50
|
+
key: { PK: Helper.append_pk_prefix(provenance: pk), SK: Helper::SK_PROVENANCE_PREFIX }
|
51
51
|
)
|
52
52
|
resp.nil? || resp.empty? ? nil : resp
|
53
53
|
end
|