refactor(convex): modularize ai generation helpers and cleanup flows
This commit is contained in:
6
convex/ai_node_data.ts
Normal file
6
convex/ai_node_data.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function getNodeDataRecord(data: unknown): Record<string, unknown> {
|
||||
if (data && typeof data === "object") {
|
||||
return data as Record<string, unknown>;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
Reference in New Issue
Block a user