@adobe/spacecat-shared-data-access 3.50.0 → 3.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v3.50.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.50.0...@adobe/spacecat-shared-data-access-v3.50.1) (2026-04-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* grantSuggestions/revokeSuggestionGrant RPC calls hitting the REA… ([#1530](https://github.com/adobe/spacecat-shared/issues/1530)) ([4e077f8](https://github.com/adobe/spacecat-shared/commit/4e077f86bd4a6636af5b165ec42d39add3a556f1))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-data-access-v3.50.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.49.0...@adobe/spacecat-shared-data-access-v3.50.0) (2026-04-10)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/package.json
CHANGED
|
@@ -63,7 +63,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
63
63
|
* @returns {Promise<{ data: Array|null, error: object|null }>}
|
|
64
64
|
*/
|
|
65
65
|
async invokeGrantSuggestionsRpc(suggestionIds, siteId, tokenType, cycle) {
|
|
66
|
-
return this.postgrestService.rpc('
|
|
66
|
+
return this.postgrestService.rpc('wrpc_grant_suggestions', {
|
|
67
67
|
p_suggestion_ids: suggestionIds,
|
|
68
68
|
p_site_id: siteId,
|
|
69
69
|
p_token_type: tokenType,
|
|
@@ -167,7 +167,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
167
167
|
|
|
168
168
|
if (error) {
|
|
169
169
|
this.log.error('grantSuggestions: RPC failed', error);
|
|
170
|
-
throw new DataAccessError('Failed to grant suggestions (
|
|
170
|
+
throw new DataAccessError('Failed to grant suggestions (wrpc_grant_suggestions)', this, error);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
const row = Array.isArray(data) && data.length > 0 ? data[0] : null;
|
|
@@ -192,7 +192,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
192
192
|
if (!hasText(grantId)) {
|
|
193
193
|
throw new DataAccessError('invokeRevokeSuggestionGrantRpc: grantId is required', this);
|
|
194
194
|
}
|
|
195
|
-
return this.postgrestService.rpc('
|
|
195
|
+
return this.postgrestService.rpc('wrpc_revoke_suggestion_grant', {
|
|
196
196
|
p_grant_id: grantId,
|
|
197
197
|
});
|
|
198
198
|
}
|
|
@@ -216,7 +216,7 @@ class SuggestionGrantCollection extends BaseCollection {
|
|
|
216
216
|
|
|
217
217
|
if (error) {
|
|
218
218
|
this.log.error('revokeSuggestionGrant: RPC failed', error);
|
|
219
|
-
throw new DataAccessError('Failed to revoke suggestion grant (
|
|
219
|
+
throw new DataAccessError('Failed to revoke suggestion grant (wrpc_revoke_suggestion_grant)', this, error);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
const row = Array.isArray(data) && data.length > 0 ? data[0] : null;
|