Danny I
CCConvex Community
•Created by Danny I on 9/30/2024 in #support-community
Chat app, only one messages table?
Ah sorry, kapa.ai gave a great answer. 🙏🏼
3 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
oh my god it's working. 😭 Thank you so much
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
My guess is I can just move this to the first callback and use the userId I get back when I insert the user record.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
It might not be necessary anymore, but, using the userId I need to add a record in the businesses table, I think I can do this in the first callback though, on user creation since I do have the userId... 🤔
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
Okay it created account, I had altogether left out the initialization of the user, thinking it was somehow abstracted away since I didn't see it happenign earlier. But indeed it does actually run.
Now the second callback is not running, which is a new issue but would love your quick outlook on it.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
let me try again
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
I'm a dummy one second.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
oh
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
all gone, it's all empty, including the auth sessions
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
Ah, yeah, it didn't work, I'm not sure why it didn't error out that one time, but it is now, with the same error.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
I also may have spoken too soon, I still need to check that everything worked, it just didn't error this time.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
I'm sure there's a good reason for it though.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
I did find it confusing though since the logs didn't reflect that, and I expected this function to run on initial user creation 🤷🏻♂️
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
Edit: Actually it still didn't work.
Hehe 😅 Another silly moment I guess.
I saw this
At which point I realized maybe I just need to return if the user was created successfully, which indeed fixed it.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
Also, the user is added to the database with the accountType field correctly set.
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
These are the params I get in profile:
43 replies
CCConvex Community
•Created by Danny I on 9/23/2024 in #support-community
Sign up user with custom fields
So I'm still having issues signing up, I get this error:
Which is because in my callback for creating a user, args doesn't have the data I sent in for sign up, only the email is coming through:
Even though my profile function does receive the params and returns them:
👀
43 replies