MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / findServerByStripeCustomerId

Function findServerByStripeCustomerId

packages/core/src/server.ts:149–155  ·  view source on GitHub ↗
(stripeCustomerId: string)

Source from the content-addressed store, hash-verified

147export type ServerWithChannels = ReturnType<typeof findServerByIdWithChannels>;
148
149export async function findServerByStripeCustomerId(stripeCustomerId: string) {
150 const found = await db.query.dbServers.findFirst({
151 where: eq(dbServers.stripeCustomerId, stripeCustomerId),
152 });
153 if (!found) return null;
154 return addFlagsToServer(found);
155}
156
157export async function findServerByStripeSubscriptionId(
158 stripeSubscriptionId: string,

Callers 1

webhookHandlerFunction · 0.90

Calls 1

addFlagsToServerFunction · 0.90

Tested by

no test coverage detected