a tool for shared writing and social publishing
298
fork

Configure Feed

Select the types of activity you want to include in your feed.

at feature/analytics 42 lines 2.0 kB view raw
1import { serve } from "inngest/next"; 2import { inngest } from "app/api/inngest/client"; 3import { index_post_mention } from "./functions/index_post_mention"; 4import { come_online } from "./functions/come_online"; 5import { batched_update_profiles } from "./functions/batched_update_profiles"; 6import { index_follows } from "./functions/index_follows"; 7import { migrate_user_to_standard } from "./functions/migrate_user_to_standard"; 8import { fix_standard_document_publications } from "./functions/fix_standard_document_publications"; 9import { fix_incorrect_site_values } from "./functions/fix_incorrect_site_values"; 10import { fix_standard_document_postref } from "./functions/fix_standard_document_postref"; 11import { 12 cleanup_expired_oauth_sessions, 13 check_oauth_session, 14} from "./functions/cleanup_expired_oauth_sessions"; 15import { write_records_to_pds } from "./functions/write_records_to_pds"; 16import { stripe_handle_checkout_completed } from "./functions/stripe_handle_checkout_completed"; 17import { stripe_handle_subscription_updated } from "./functions/stripe_handle_subscription_updated"; 18import { stripe_handle_subscription_deleted } from "./functions/stripe_handle_subscription_deleted"; 19import { stripe_handle_invoice_payment_failed } from "./functions/stripe_handle_invoice_payment_failed"; 20import { sync_document_metadata } from "./functions/sync_document_metadata"; 21 22export const { GET, POST, PUT } = serve({ 23 client: inngest, 24 functions: [ 25 index_post_mention, 26 come_online, 27 batched_update_profiles, 28 index_follows, 29 migrate_user_to_standard, 30 fix_standard_document_publications, 31 fix_incorrect_site_values, 32 fix_standard_document_postref, 33 cleanup_expired_oauth_sessions, 34 check_oauth_session, 35 write_records_to_pds, 36 stripe_handle_checkout_completed, 37 stripe_handle_subscription_updated, 38 stripe_handle_subscription_deleted, 39 stripe_handle_invoice_payment_failed, 40 sync_document_metadata, 41 ], 42});