diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..b512c09d476623ff4bf8d0d63c29b784925dbdf8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f360bfe50c0794398dcc65fa9662a6d0b11dbb95..0444f28b36b2a668ed7aa8384db822d048db79b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,8 @@ services: container_name: db_container image: mongo:latest restart: always + ports: + - 3001:3001 volumes: - mongo_db:/data/db diff --git a/src/schema/schema.js b/src/schema/schema.js index 9c3ed306d7b63180a18d0ec4e004ffd798c8aa85..aa16cbd4429859ab223b28d63a711596d6dfb29a 100644 --- a/src/schema/schema.js +++ b/src/schema/schema.js @@ -1,7 +1,7 @@ const mongoose = require('mongoose'); const notificationSchema = new mongoose.Schema({ - userid:Number, + userid: Number, title: String, description: String, date: Date