Skip to content

Commit

Permalink
Fix error notification contacts field check and update item types to …
Browse files Browse the repository at this point in the history
…use dynamic menuItemType.id in migrations
  • Loading branch information
sjoerdbeentjes committed Dec 6, 2024
1 parent f3cdf0c commit 7b7a08c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions migrations/1732891349_contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default async function (client: Client) {
const errorNotificationContactsField = findField(
"Error notification contacts"
);
if (errorNotificationContactsField) {
if (!errorNotificationContactsField) {
console.log(
'Create Multiple links field "Error notification contacts" (`error_notification_contacts`) in model "Menu" (`menu`)'
);
Expand All @@ -27,7 +27,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: ["T0Kyoa-nToO3QpdYisEoqw"],
item_types: [menuItemType.id],
},
},
appearance: { addons: [], editor: "links_select", parameters: {} },
Expand All @@ -50,7 +50,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: ["T0Kyoa-nToO3QpdYisEoqw"],
item_types: [menuItemType.id],
},
},
appearance: { addons: [], editor: "links_select", parameters: {} },
Expand Down

0 comments on commit 7b7a08c

Please sign in to comment.