Michal
CCConvex Community
•Created by Michal on 10/14/2024 in #support-community
Don't see db results after mutation, but only after the action is done running.
I'm updating file a couple rows at a time. But even though I see a console log before mutation (which changes data) for every batch, i see results on frontend only after all batches and so the action has finished running.
9 replies
CCConvex Community
•Created by Michal on 10/13/2024 in #support-community
Problem with internalAction
I'm calling this like this:
const updatedRows: string[][] = await ctx.scheduler.runAfter(
0,
internal.files.handleBatchEnhance,
{
batch,
resourceColumnIndex: args.resourceColumnIndex,
actionType: args.actionType,
userId: args.userId,
profileSummarizationHeaderIndex:
args.profileSummarizationHeaderIndex,
companyInfoHeaderIndex: args.companyInfoHeaderIndex,
offering: args.offering,
resultColumnIndex: args.resultColumnIndex,
}
);
And it returns: kc2bcfhssjzpryzj28casn202572k8qa
But when i change this from internalAction to normal function it returns an array of rows as it should with the exact same code inside. When i run the handleBatchEnhance action in convex dashboard it also works so i guess I'm doing something wrong when calling this internal action.
5 replies
CCConvex Community
•Created by Michal on 10/5/2024 in #support-community
How can i check if I'm on production or on development?
I think you need to define variables in convex variables and you cannot use ones from .env file. But how can i define them in convex so that I get development when i run this on localhost and production when it's a deployed version?
4 replies