mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 21:09:00 +08:00
temp: move more to main instance
This commit is contained in:
parent
4f0510e71d
commit
b9dde3fc3d
@ -97,8 +97,7 @@ export async function getACUC(
|
|||||||
mode === RateLimiterMode.Extract ||
|
mode === RateLimiterMode.Extract ||
|
||||||
mode === RateLimiterMode.ExtractStatus;
|
mode === RateLimiterMode.ExtractStatus;
|
||||||
while (retries < maxRetries) {
|
while (retries < maxRetries) {
|
||||||
const client =
|
const client = supabase_service;
|
||||||
Math.random() > (2/3) ? supabase_rr_service : supabase_service;
|
|
||||||
({ data, error } = await client.rpc(
|
({ data, error } = await client.rpc(
|
||||||
"auth_credit_usage_chunk_26_tally",
|
"auth_credit_usage_chunk_26_tally",
|
||||||
{ input_key: api_key, i_is_extract: isExtract, tally_untallied_credits: true },
|
{ input_key: api_key, i_is_extract: isExtract, tally_untallied_credits: true },
|
||||||
|
@ -246,7 +246,7 @@ export async function crawlStatusController(
|
|||||||
let totalCount = jobIDs.length;
|
let totalCount = jobIDs.length;
|
||||||
|
|
||||||
if (totalCount === 0 && process.env.USE_DB_AUTHENTICATION === "true") {
|
if (totalCount === 0 && process.env.USE_DB_AUTHENTICATION === "true") {
|
||||||
const x = await supabase_rr_service
|
const x = await supabase_service
|
||||||
.from('firecrawl_jobs')
|
.from('firecrawl_jobs')
|
||||||
.select('*', { count: 'exact', head: true })
|
.select('*', { count: 'exact', head: true })
|
||||||
.eq("crawl_id", req.params.jobId)
|
.eq("crawl_id", req.params.jobId)
|
||||||
|
@ -124,7 +124,7 @@ export async function autoCharge(
|
|||||||
if (chunk.sub_user_id) {
|
if (chunk.sub_user_id) {
|
||||||
// Fetch the customer's Stripe information
|
// Fetch the customer's Stripe information
|
||||||
const { data: customer, error: customersError } =
|
const { data: customer, error: customersError } =
|
||||||
await supabase_rr_service
|
await supabase_service
|
||||||
.from("customers")
|
.from("customers")
|
||||||
.select("id, stripe_customer_id")
|
.select("id, stripe_customer_id")
|
||||||
.eq("id", chunk.sub_user_id)
|
.eq("id", chunk.sub_user_id)
|
||||||
|
@ -18,7 +18,7 @@ export async function validateIdempotencyKey(req: Request): Promise<boolean> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { data, error } = await supabase_rr_service
|
const { data, error } = await supabase_service
|
||||||
.from("idempotency_keys")
|
.from("idempotency_keys")
|
||||||
.select("key")
|
.select("key")
|
||||||
.eq("key", idempotencyKey);
|
.eq("key", idempotencyKey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user