AOSSIE-Org / AOSSIE-Org/InPactAI

BUG:Brand On boarding doesn't work

Đang mở
#110 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
102
Fork
144
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

## 📌 Issue Overview
When On boarding as a brand submitting brand results in different error's and not letting user move ahead
## 🔍 Steps to Reproduce
1. Go to '/onboarding'
2. Click on 'brand'
3. Fill out the form and try to submit
4. See the error

## 🎯 Expected Behavior
Brand should get registered and user should be redirected to /brand/dashboard

## 🚨 Actual Behavior
Gives Errors like:
- insert or update on table "brands" violates foreign key constraint "brands_user_id_fkey"
- bucket not found
- table not found

## 📷 Screenshot
nil

## 💡 Suggested Improvements
It causes errors cause:
- The actual user is not added to the users table before creating brand since brand depends on user_id
- The brands table is not created when the models are called when starting app

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.