Permalink
Browse files

making shit work

  • Loading branch information...
Yvonne Lardizabal Yvonne Lardizabal
Yvonne Lardizabal authored and Yvonne Lardizabal committed Nov 14, 2017
1 parent dd3c813 commit 3c02a38a3807681303d5c5a0d9ea97cb2413282b
Showing with 7 additions and 6 deletions.
  1. +2 −2 models/items.js
  2. +3 −3 models/profile.js
  3. +1 −0 routes/api-profile-routes.js
  4. +1 −1 server.js
View
@@ -39,7 +39,7 @@ var Items = sequelize.define("Items", {
color: {
type: DataTypes.STRING,
allowNull: false;
allowNull: false,
},
emotion: {
@@ -58,7 +58,7 @@ var Items = sequelize.define("Items", {
},
image_url: {
type: DataTypes.STRING,
allowNull: false;
allowNull: false,
},
},{
timestamps: true
View
@@ -34,7 +34,7 @@ var Profile = sequelize.define("Profile", {
confirm_password: {
type: DataTypes.STRING,
allowNull: false,
contains: password,
// contains: password,
},
}, {
timestamps: true
@@ -53,8 +53,8 @@ var Profile = sequelize.define("Profile", {
onDelete: "cascade"
});
Profile.hasMany(model.Wishlist, {
});
// Profile.hasMany(model.Wishlist, {
// });
};
return Profile;
@@ -60,4 +60,5 @@ module.exports = function(app) {
res.json(dbProfile);
});
});
});
};
View
@@ -28,7 +28,7 @@ app.use(express.static("public"));
// =============================================================
require("./routes/api-profile-routes.js")(app);
require("./routes/api-items-routes.js")(app);
require("./routes/api-wishlist-routes.js")(app);
// require("./routes/api-wishlist-routes.js")(app);
require("./routes/html-routes.js")(app);

0 comments on commit 3c02a38

Please sign in to comment.