Why does this give me an error:
await retrier.run(internal.customActions.internal.meiliSearch.syncProfile.syncProfileToMeili, {
profileId: change.id,
indexName: "profiles"
});
But this works fine?
await ctx.scheduler.runAfter(0, internal.customActions.internal.meiliSearch.syncProfile.syncProfileToMeili, {
profileId: change.id,
indexName: "profiles"
});
I get this error:
Argument of type 'FunctionReference<"action", "internal", { profileId: Id<"profiles">; indexName: string; }, { success: boolean; }, string>' is not assignable to parameter of type 'RunMutationCtx'.
Property 'runMutation' is missing in type 'FunctionReference<"action", "internal", { profileId: Id<"profiles">; indexName: string; }, { success: boolean; }, string>' but required in type 'RunMutationCtx'.