fix(convex): rename helper modules to valid convex paths
This commit is contained in:
9
convex/ai_utils.ts
Normal file
9
convex/ai_utils.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
type NodeCanvasRef = {
|
||||
canvasId: string;
|
||||
};
|
||||
|
||||
export function assertNodeBelongsToCanvasOrThrow(node: NodeCanvasRef, canvasId: string): void {
|
||||
if (node.canvasId !== canvasId) {
|
||||
throw new Error("Node does not belong to canvas");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user