mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
Add MCP server and enhance AI content tools
Implement self-hosted MCP server for admin actions, update AI generation tools in admin dashboard, and refine mobile app stores and components.
This commit is contained in:
1 parent
b0f1700e40
commit
4e40b92b16
71 files changed
+10511
-1008
No files matched your search
@@ -84,7 +84,8 @@ export async function createQuestion(
|
||||
});
|
||||
|
||||
if (error) throw error;
|
||||
return created as Question;
|
||||
if (!created || created.length === 0) throw new Error('Failed to create question');
|
||||
return created[0] as Question;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -138,7 +139,7 @@ export async function bulkCreateQuestions(
|
||||
});
|
||||
|
||||
if (error) throw error;
|
||||
if (data) results.push(data as Question);
|
||||
if (data && data.length > 0) results.push(data[0] as Question);
|
||||
}
|
||||
|
||||
return results;
|
||||
|
||||
Reference in new issue
Block a user