mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-06-27 00:41:33 +00:00
fix(api): cached acuc didn't have the is_extract flag set
cosmetic issue only (error message), no behavioural change
This commit is contained in:
parent
bc9065810d
commit
b51692db1c
@ -210,13 +210,17 @@ export async function getACUC(
|
||||
|
||||
const chunk: AuthCreditUsageChunk | null =
|
||||
data.length === 0 ? null : data[0].team_id === null ? null : data[0];
|
||||
|
||||
if (chunk) {
|
||||
chunk.is_extract = isExtract;
|
||||
}
|
||||
|
||||
// NOTE: Should we cache null chunks? - mogery
|
||||
if (chunk !== null && useCache) {
|
||||
setCachedACUC(api_key, isExtract, chunk);
|
||||
}
|
||||
|
||||
return chunk ? { ...chunk, is_extract: isExtract } : null;
|
||||
return chunk;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user