@nkhang1902/strapi-plugin-export-import-clsx 1.5.2 → 1.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkhang1902/strapi-plugin-export-import-clsx",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "A powerful Strapi plugin for exporting and importing data with Excel support and advanced filtering",
5
5
  "main": "./strapi-server.js",
6
6
  "scripts": {
@@ -14,17 +14,12 @@ module.exports = ({ strapi }) => ({
14
14
  mode
15
15
  );
16
16
 
17
- const filename = `${
18
- contentType?.split(".")[1]|| "strapi"
19
- }-export-${new Date().toISOString().split("T")[0]}.xlsx`;
17
+ const filename = `${contentType?.split(".")[1]}-export-${new Date().toISOString().split("T")[0]}.xlsx`;
20
18
 
21
19
  if (mode === "participant") {
22
- console.log(ctx.query)
23
20
  const expName = await strapi.documents(contentType).findOne({
24
21
  select: ["name"],
25
- filters: {
26
- documentId: ctx.query[`filters[documentId][$eq]`],
27
- },
22
+ filters
28
23
  })
29
24
  filename = `${expName?.name}-participant-export-${new Date().toISOString().split("T")[0]}.xlsx`;
30
25
  }