@strapi/strapi 4.12.0-beta.3 → 4.12.0-beta.4

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.
@@ -283,10 +283,8 @@ const createDefaultImplementation = ({ strapi, db, eventHub, entityValidator })
283
283
 
284
284
  const validData = await entityValidator.validateEntityUpdate(
285
285
  model,
286
- data,
287
- {
288
- isDraft,
289
- },
286
+ _.omit(data, ['id']), // Omit the id, the cloned entity id will be generated by the database
287
+ { isDraft },
290
288
  entityToClone
291
289
  );
292
290
  const query = transformParamsToQuery(uid, pickSelectionParams(wrappedParams));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/strapi",
3
- "version": "4.12.0-beta.3",
3
+ "version": "4.12.0-beta.4",
4
4
  "description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
5
5
  "keywords": [
6
6
  "strapi",
@@ -81,19 +81,19 @@
81
81
  "dependencies": {
82
82
  "@koa/cors": "3.4.3",
83
83
  "@koa/router": "10.1.1",
84
- "@strapi/admin": "4.12.0-beta.3",
85
- "@strapi/data-transfer": "4.12.0-beta.3",
86
- "@strapi/database": "4.12.0-beta.3",
87
- "@strapi/generate-new": "4.12.0-beta.3",
88
- "@strapi/generators": "4.12.0-beta.3",
89
- "@strapi/logger": "4.12.0-beta.3",
90
- "@strapi/permissions": "4.12.0-beta.3",
91
- "@strapi/plugin-content-manager": "4.12.0-beta.3",
92
- "@strapi/plugin-content-type-builder": "4.12.0-beta.3",
93
- "@strapi/plugin-email": "4.12.0-beta.3",
94
- "@strapi/plugin-upload": "4.12.0-beta.3",
95
- "@strapi/typescript-utils": "4.12.0-beta.3",
96
- "@strapi/utils": "4.12.0-beta.3",
84
+ "@strapi/admin": "4.12.0-beta.4",
85
+ "@strapi/data-transfer": "4.12.0-beta.4",
86
+ "@strapi/database": "4.12.0-beta.4",
87
+ "@strapi/generate-new": "4.12.0-beta.4",
88
+ "@strapi/generators": "4.12.0-beta.4",
89
+ "@strapi/logger": "4.12.0-beta.4",
90
+ "@strapi/permissions": "4.12.0-beta.4",
91
+ "@strapi/plugin-content-manager": "4.12.0-beta.4",
92
+ "@strapi/plugin-content-type-builder": "4.12.0-beta.4",
93
+ "@strapi/plugin-email": "4.12.0-beta.4",
94
+ "@strapi/plugin-upload": "4.12.0-beta.4",
95
+ "@strapi/typescript-utils": "4.12.0-beta.4",
96
+ "@strapi/utils": "4.12.0-beta.4",
97
97
  "bcryptjs": "2.4.3",
98
98
  "boxen": "5.1.2",
99
99
  "chalk": "4.1.2",
@@ -142,5 +142,5 @@
142
142
  "node": ">=14.19.1 <=18.x.x",
143
143
  "npm": ">=6.0.0"
144
144
  },
145
- "gitHead": "e8f4408751727a0104775a23cfa96d4741b1f21b"
145
+ "gitHead": "edcf86b496a7bee5189cdbfeb16f5a5c0abccc81"
146
146
  }