Skip to content

Commit

Permalink
Dynamic menuItemType id
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Nov 29, 2024
1 parent f3c7884 commit f3cdf0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrations/1732891349_contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function (client: Client) {
console.log(
'Create Multiple links field "Error notification contacts" (`error_notification_contacts`) in model "Menu" (`menu`)'
);
await client.fields.create("UyXBcHy5TSC45Ah_bll9LQ", {
await client.fields.create(menuItemType.id, {
id: "GlLvpmJFTBup26dDM2OMuQ",
label: "Error notification contacts",
field_type: "links",
Expand All @@ -40,7 +40,7 @@ export default async function (client: Client) {
console.log(
'Create Multiple links field "Feedback contacts" (`feedback_contacts`) in model "Menu" (`menu`)'
);
await client.fields.create("UyXBcHy5TSC45Ah_bll9LQ", {
await client.fields.create(menuItemType.id, {
id: "CPxFkf5cRPKm0ORLakLX3Q",
label: "Feedback contacts",
field_type: "links",
Expand Down

0 comments on commit f3cdf0c

Please sign in to comment.