MCPcopy Index your code
hub / github.com/simstudioai/sim / hasSubscription

Function hasSubscription

apps/sim/lib/webhooks/provider-subscriptions.ts:48–51  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

46 nextConfig,
47}: RecreateCheckInput): boolean {
48 const hasSubscription = (provider: string) => {
49 const handler = getProviderHandler(provider)
50 return Boolean(handler.createSubscription)
51 }
52
53 if (previousProvider !== nextProvider) {
54 return hasSubscription(previousProvider) || hasSubscription(nextProvider)

Calls 1

getProviderHandlerFunction · 0.90

Tested by

no test coverage detected