Skip to content

Commit

Permalink
update migration with correct link
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdbeentjes committed Dec 6, 2024
1 parent 95d6b0f commit 3e1f869
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions migrations/1732891349_contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ export default async function (client: Client) {
const menuItemType = itemTypes.find(
(itemType: { api_key: string }) => itemType.api_key === "menu"
) || { id: "" };
const contactItemType = itemTypes.find(
(itemType: { api_key: string }) => itemType.api_key === "contact"
) || { id: "" };

const fields = await client.fields.list(menuItemType.id);
const findField = (label: string) =>
Expand All @@ -27,7 +30,7 @@ export default async function (client: Client) {
on_publish_with_unpublished_references_strategy: "fail",
on_reference_unpublish_strategy: "delete_references",
on_reference_delete_strategy: "delete_references",
item_types: [menuItemType.id],
item_types: [contactItemType.id],
},
},
appearance: { addons: [], editor: "links_select", parameters: {} },
Expand All @@ -50,7 +53,7 @@ export default async function (client: Client) {
on_publish_with_unpublished_references_strategy: "fail",
on_reference_unpublish_strategy: "delete_references",
on_reference_delete_strategy: "delete_references",
item_types: [menuItemType.id],
item_types: [contactItemType.id],
},
},
appearance: { addons: [], editor: "links_select", parameters: {} },
Expand Down

3 comments on commit 3e1f869

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://nl2120.netlify.app as production
🚀 Deployed on https://6752eb3b3290f03a6a24a81b--nl2120.netlify.app

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.