update integration names
This commit is contained in:
@ -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';
|
||||
|
||||
|
||||
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user