codeforjapan / hackdays

Next version of Social Hackday website.
hackdays-c4j.vercel.app
6 stars 0 forks source link

Public.profile is missing until update profile. #41

Closed halsk closed 2 years ago

halsk commented 2 years ago

Describe the bug

When users create an account, there is no record on public.profiles table. But the record would be needed for joining existing projects.

To Reproduce Steps to reproduce the behavior:

  1. Create a new account.
  2. Go to the project page.
  3. Press join.
  4. Post API shows error

Expected behavior

There should be a new record in the public.profiles table immediately after a user was created.

Screenshots

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

halsk commented 2 years ago

If you need to add a user's name on creating, you will need to add fields on the triggered function.

https://database.dev/handle-new-user