iPheNoMeNaL-oG
PPrisma
•Created by iPheNoMeNaL-oG on 7/15/2024 in #help-and-questions
Using upsert when `Notifications` table doesn't exist yet for user
It seems this is the way to create if it doesn't exist yet
but
userId
is not defined in create
3 replies
PPrisma
•Created by iPheNoMeNaL-oG on 6/13/2024 in #help-and-questions
Updating user info in db using forms
this work correctly for and username is updated in the db
10 replies
PPrisma
•Created by iPheNoMeNaL-oG on 6/13/2024 in #help-and-questions
Updating user info in db using forms
server action
10 replies
PPrisma
•Created by iPheNoMeNaL-oG on 6/13/2024 in #help-and-questions
Updating user info in db using forms
Then inside my
<ProfileForm/>
client component I have the submit function of the form as the following
10 replies
PPrisma
•Created by iPheNoMeNaL-oG on 6/13/2024 in #help-and-questions
Updating user info in db using forms
@Nurul (Prisma) Here's what I have setup for using server actions. In
page.tsx
for profile
I need to pass updateUser
as a prop to <ProfileForm updateUser={updateUser}/>
right?10 replies
PPrisma
•Created by iPheNoMeNaL-oG on 6/13/2024 in #help-and-questions
Updating user info in db using forms
Also is best to update by
id
instead of username
?10 replies