update integration names

This commit is contained in:
Hongbo Wu
2024-03-27 19:06:20 +08:00
parent ffed903bb9
commit a1a3901ef6
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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(