diff --git a/mappings/rating.jsonata b/mappings/rating.jsonata index 1af3ce80f0120e491ed58db8e0db54945d64d1a3..064b939c636edbe6f61c0f425d3b2adfeba890e6 100644 --- a/mappings/rating.jsonata +++ b/mappings/rating.jsonata @@ -1,4 +1,4 @@ -{ +$.data.{ "context": $context(context, $action), "message": message -} +}[] diff --git a/src/gcl/gcl.service.ts b/src/gcl/gcl.service.ts index 151c10de56a87d63f17ce12ae1a84e9b92b5ea0f..8ef6c24dd27b242c16632a1b02a142ce11cea3f4 100644 --- a/src/gcl/gcl.service.ts +++ b/src/gcl/gcl.service.ts @@ -51,7 +51,7 @@ export class GCLService { async rating(body: any) { const payload = await this.tlService.transform(body, "rating"); - const psResponse = await this.psClientService.post(payload); + const psResponse = await this.psClientService.postMany(payload); const response = await this.tlService.transform(psResponse, "on_rating"); return response;