@translationstudio/translationstudio-strapi-extension 2.0.1 → 2.0.2

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.
@@ -99,7 +99,7 @@ const controller = ({ strapi: strapi2 }) => ({
99
99
  const payload = typeof ctx.request.body === "string" ? JSON.parse(ctx.request.body) : ctx.request.body;
100
100
  const result = await strapi2.plugin(APP_NAME$1).service("service").exportData(payload);
101
101
  ctx.status = 200;
102
- ctx.body = [{ fields: result }];
102
+ ctx.body = [result];
103
103
  } catch (ex) {
104
104
  ctx.status = 500;
105
105
  ctx.body = { error: ex.message ?? "Generic error" };
@@ -80,7 +80,7 @@ const controller = ({ strapi: strapi2 }) => ({
80
80
  const payload = typeof ctx.request.body === "string" ? JSON.parse(ctx.request.body) : ctx.request.body;
81
81
  const result = await strapi2.plugin(APP_NAME$1).service("service").exportData(payload);
82
82
  ctx.status = 200;
83
- ctx.body = [{ fields: result }];
83
+ ctx.body = [result];
84
84
  } catch (ex) {
85
85
  ctx.status = 500;
86
86
  ctx.body = { error: ex.message ?? "Generic error" };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  }
11
11
  ],
12
12
  "homepage": "https://translationstudio.tech",
13
- "version": "2.0.1",
13
+ "version": "2.0.2",
14
14
  "keywords": [
15
15
  "translationstudio",
16
16
  "strapi",