Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

code improvements

Pedro Ladeira581f718522ab
diff --git a/apps/web/lib/ai/generate-reward.ts b/apps/web/lib/ai/generate-reward.ts
index 30b3786146..60377b74e0 100644
--- a/apps/web/lib/ai/generate-reward.ts
+++ b/apps/web/lib/ai/generate-reward.ts
@@ -33,9 +33,10 @@ const inputSchema = z.object({
function buildSystemPrompt(
event: (typeof AI_REWARD_EVENTS)[number],
- unavailableSources: (ReturnType<typeof getCustomerSourceAvailability> & {
+ unavailableSources: {
id: string;
- })[],
+ missingIntegration?: { name: string };
+ }[],
) {
const entities = REWARD_CONDITIONS[event].entities.map((entity) => {
const attrs = entity.attributes