Optimizing Function Calls by Avoiding Redundant Abstractions
getCurrentUserInternal, which is basically just a wrapper around another function called getCurrentUser. I’m using this wrapper to access user information inside another function, getFacturapiLiveInstance.The problem is that getCurrentUser accepts QueryCtx, and in the action I only have access to ActionCtx.
Is there a better way?
convex/users.tsconvex/facturapi_usenode.ts