Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update acuc-cache-clear.ts

Nicolas997dc1410f3c
diff --git a/apps/api/src/controllers/v0/admin/acuc-cache-clear.ts b/apps/api/src/controllers/v0/admin/acuc-cache-clear.ts
index 65dc21c77..bbe0d43e4 100644
--- a/apps/api/src/controllers/v0/admin/acuc-cache-clear.ts
+++ b/apps/api/src/controllers/v0/admin/acuc-cache-clear.ts
@@ -7,6 +7,10 @@ export async function acucCacheClearController(req: Request, res: Response) {
try {
const team_id: string = req.body.team_id;
+ if (!team_id) {
+ return res.status(400).json({ error: "team_id is required" });
+ }
+
const keys = await supabase_service
.from("api_keys")
.select("*")