diff --git a/packages/db/migrations/0171.do.migrate_webhooks_and_exporter.sql b/packages/db/migrations/0171.do.migrate_webhooks_and_exporter.sql index 6c0b691dc..270c10fa7 100755 --- a/packages/db/migrations/0171.do.migrate_webhooks_and_exporter.sql +++ b/packages/db/migrations/0171.do.migrate_webhooks_and_exporter.sql @@ -11,7 +11,7 @@ FROM omnivore.webhooks; -- Migrate exporters to rules INSERT INTO omnivore.rules (user_id, name, filter, actions, enabled, created_at, updated_at, event_types) -SELECT user_id, 'export', 'in:all', jsonb_build_array(jsonb_build_object('type', 'EXPORT', 'params', jsonb_build_array(name))), enabled, created_at, updated_at, '{PAGE_CREATED,PAGE_UPDATED,HIGHLIGHT_CREATED,LABEL_CREATED}' +SELECT user_id, 'export', 'in:all', jsonb_build_array(jsonb_build_object('type', 'EXPORT', 'params', jsonb_build_array(name))), enabled, created_at, updated_at, '{PAGE_CREATED,PAGE_UPDATED,HIGHLIGHT_CREATED,HIGHLIGHT_UPDATED,LABEL_CREATED}' FROM omnivore.integrations WHERE type = 'EXPORT'; diff --git a/packages/web/pages/settings/rules.tsx b/packages/web/pages/settings/rules.tsx index c4fd22288..3cd9441e5 100644 --- a/packages/web/pages/settings/rules.tsx +++ b/packages/web/pages/settings/rules.tsx @@ -126,7 +126,7 @@ const CreateActionModal = (props: CreateActionModalProps): JSX.Element => { const { labels } = useGetLabelsQuery() const { integrations } = useGetIntegrationsQuery() - const integrationOptions = ['Notion', 'Readwise'] + const integrationOptions = ['NOTION', 'READWISE'] const isIntegrationEnabled = (integration: string): boolean => { return integrations.some(