@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.
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -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 = [
|
|
102
|
+
ctx.body = [result];
|
|
103
103
|
} catch (ex) {
|
|
104
104
|
ctx.status = 500;
|
|
105
105
|
ctx.body = { error: ex.message ?? "Generic error" };
|
package/dist/server/index.mjs
CHANGED
|
@@ -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 = [
|
|
83
|
+
ctx.body = [result];
|
|
84
84
|
} catch (ex) {
|
|
85
85
|
ctx.status = 500;
|
|
86
86
|
ctx.body = { error: ex.message ?? "Generic error" };
|