Skip to content

Commit 074c490

Browse files
committed
refactor: remove the label & code field from the url paterns
1 parent 6bac689 commit 074c490

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

packages/core/server/content-types/url-pattern/schema.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,10 @@
1919
}
2020
},
2121
"attributes": {
22-
"label": {
23-
"type": "string",
24-
"required": true
25-
},
2622
"pattern": {
2723
"type": "string",
2824
"required": true
2925
},
30-
"code": {
31-
"type": "string",
32-
"unique": true,
33-
"required": true
34-
},
3526
"contenttype": {
3627
"type": "string",
3728
"required": true

packages/core/server/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => {
5555
strapi.plugin('config-sync').pluginTypes.push({
5656
configName: 'url-pattern',
5757
queryString: 'plugin::webtools.url-pattern',
58-
uid: 'code',
58+
uid: 'documentId',
5959
});
6060
}
6161
};

0 commit comments

Comments
 (0)