This commit is contained in:
Yûki VACHOT 2021-11-12 13:41:03 +01:00
parent 92a583b413
commit 1c64051aae
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,8 @@
module.exports = mongoose => { module.exports = mongoose => {
let schema = mongoose.Schema({ let schema = mongoose.Schema({
userId: String,
name: String, name: String,
videos: [] videos: Array
}, },
{ timestamps: true } { timestamps: true }
); );

View file

@ -4,7 +4,7 @@
"scripts": { "scripts": {
"heroku-postbuild": "ng build --prod", "heroku-postbuild": "ng build --prod",
"ng": "ng", "ng": "ng",
"start": "node server.js", "start": "node backend/server.js",
"build": "ng build", "build": "ng build",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
@ -53,7 +53,7 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.3.0", "ts-node": "~8.3.0",
"tslint": "~6.1.0" "tslint": "~6.1.0"
} },
"engines": { "engines": {
"node": "12.18.2", "node": "12.18.2",
"npm": "6.14.5" "npm": "6.14.5"