Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Nick: fixes
Nicolasd965f2ce7d9a
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.tsindex c9705f0f7..93327e66e 100644--- a/apps/api/src/controllers/auth.ts+++ b/apps/api/src/controllers/auth.ts@@ -95,7 +95,7 @@ export async function getACUC(while (retries < maxRetries) {({ data, error } = await supabase_service.rpc(- "auth_credit_usage_chunk_test_17_credit_pack",+ "auth_credit_usage_chunk_test_21_credit_pack",{ input_key: api_key }));@@ -125,8 +125,8 @@ export async function getACUC(if (chunk !== null && useCache) {setCachedACUC(api_key, chunk);}- // Log the chunk for now- console.log(chunk);++ // console.log(chunk);return chunk;} else {diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.tsindex 9705b855a..22ac62947 100644--- a/apps/api/src/controllers/v1/types.ts+++ b/apps/api/src/controllers/v1/types.ts@@ -362,6 +362,8 @@ export type AuthCreditUsageChunk = {coupons: any[];adjusted_credits_used: number; // credits this period minus coupons usedremaining_credits: number;+ sub_user_id: string | null;+ total_credits_sum: number;};export interface RequestWithMaybeACUC<diff --git a/apps/api/src/services/notification/email_notification.ts b/apps/api/src/services/notification/email_notification.tsindex 1eceb06b7..a94d34c4e 100644--- a/apps/api/src/services/notification/email_notification.ts+++ b/apps/api/src/services/notification/email_notification.ts@@ -109,6 +109,8 @@ export async function sendNotificationInternal(return { success: false };}+ // TODO: observation: Free credits people are not receiving notifications+const { data: recentData, error: recentError } = await supabase_service.from("user_notifications").select("*")@@ -118,7 +120,7 @@ export async function sendNotificationInternal(.lte("sent_date", endDateString);if (recentError) {- Logger.debug(`Error fetching recent notifications: ${recentError}`);+ Logger.debug(`Error fetching recent notifications: ${recentError.message}`);return { success: false };}