Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/onboarding #12

Merged
merged 5 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const verifyLoginOtp = async (req, res) => {
};

const verifySignUpOtp = async (req, res) => {
const { otp, mobile } = req.body;
const { name, otp, mobile } = req.body;

const params = {
ClientId: process.env.COGNITO_APP_CLIENT_ID,
Expand All @@ -139,6 +139,7 @@ const verifySignUpOtp = async (req, res) => {
const command = new ConfirmSignUpCommand(params);
const data = await cognito.send(command);
const newUser = new User({
name,
mobile,
});
await newUser.save();
Expand Down
1 change: 1 addition & 0 deletions controllers/products/decoratorController.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const createDecorator = async (req, res) => {
const newDecorator = new Decorator({
name: req.body.name,
id: req.body.id,
venId: req.body.venId,
eventTypes: req.body.eventTypes,
themesOffered: req.body.themesOffered,
propSelection: req.body.propSelection,
Expand Down
12 changes: 9 additions & 3 deletions models/decoraters.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ const decoratorSchema = Schema({
customDesignProcess: { type: String },

themeElements: { type: [String], default: [] },
backdropOptions: { type: String, customisable: Boolean },
stageDecorationOptions: { type: String, customisable: Boolean },
propAndAccessorySelection: { type: String, customisable: Boolean },
backdropOptions: { options: [String], customisable: { type: Boolean } },
stageDecorationOptions: {
options: [String],
customisable: { type: Boolean },
},
propAndAccessorySelection: {
options: [String],
customisable: { type: Boolean },
},

freeConsultation: { type: Boolean, default: false },
writtenThemeProposal: { type: Boolean, default: false },
Expand Down