Merge branch 'main' of https://git.coastit.co.za/caitlin/CRM_ENVR
This commit is contained in:
@@ -196,11 +196,11 @@ export async function GET(request: NextRequest) {
|
||||
trends,
|
||||
recentLeads: mappedLeads.slice(0, 10),
|
||||
statusDistribution: [
|
||||
{ name: "Open", value: currentCounts.open, color: "#FFFFFF" },
|
||||
{ name: "Contacted", value: currentCounts.contacted, color: "#dc2626" },
|
||||
{ name: "Pending", value: currentCounts.pending, color: "#1e3a8a" },
|
||||
{ name: "Closed", value: currentCounts.closed, color: "#60a5fa" },
|
||||
{ name: "Ignored", value: currentCounts.ignored, color: "#000000" },
|
||||
{ name: "Open", value: currentCounts.open, color: "#3b82f6" },
|
||||
{ name: "Contacted", value: currentCounts.contacted, color: "#f59e0b" },
|
||||
{ name: "Pending", value: currentCounts.pending, color: "#8b5cf6" },
|
||||
{ name: "Closed", value: currentCounts.closed, color: "#10b981" },
|
||||
{ name: "Ignored", value: currentCounts.ignored, color: "#6B7280" },
|
||||
],
|
||||
periodLabel: periodLabels[period] ?? "Selected period",
|
||||
}
|
||||
|
||||
@@ -15,11 +15,7 @@ export async function GET(request: NextRequest) {
|
||||
const pos = searchParams.get("pos") || ""
|
||||
|
||||
if (!TENOR_API_KEY) {
|
||||
return NextResponse.json({
|
||||
results: [],
|
||||
error: "TENOR_API_KEY not configured",
|
||||
noKey: true,
|
||||
})
|
||||
return NextResponse.json({ results: [], noKey: true })
|
||||
}
|
||||
|
||||
const endpoint = q
|
||||
|
||||
Reference in New Issue
Block a user