@smi-digital/create-smi-app 2.3.0 → 2.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smi-digital/create-smi-app",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -21,6 +21,7 @@ export default {
21
21
  }
22
22
 
23
23
  // 3. Grant the permissions programmatically
24
+ /* eslint-disable no-await-in-loop */
24
25
  for (const action of permissionsToOpen) {
25
26
  const existingPermission = await strapi
26
27
  .query('plugin::users-permissions.permission')
@@ -29,12 +30,13 @@ export default {
29
30
  if (!existingPermission) {
30
31
  await strapi.query('plugin::users-permissions.permission').create({
31
32
  data: {
32
- action: action,
33
+ action,
33
34
  role: publicRole.id,
34
35
  },
35
36
  });
36
37
  console.log(`[BOOTSTRAP] Automatically granted public access to: ${action}`);
37
38
  }
38
39
  }
40
+ /* eslint-enable no-await-in-loop */
39
41
  },
40
42
  };