adrianhajdin / project_mern_memories

This is a code repository for the corresponding video tutorial. Using React, Node.js, Express & MongoDB you'll learn how to build a Full Stack MERN Application - from start to finish. The App is called "Memories" and it is a simple social media app that allows users to post interesting events that happened in their lives.
https://youtube.com/playlist?list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu
4.95k stars 1.83k forks source link

create a memory timing issue #200

Open sagar-vaghela opened 1 week ago

sagar-vaghela commented 1 week ago

create a memory timing issue The past date is stored in the database while creating new memories.

https://github.com/adrianhajdin/project_mern_memories/assets/30215189/2900594d-c205-4cc9-9872-2f3ee5e22ec0

shivansh84ya commented 1 week ago

@sagar-vaghela, please assign this issue to me so I can work on resolving the problem.

sagar-vaghela commented 1 week ago

It is already fixed by @ansuha.

PR already raised. please review and merge

Santosh130602 commented 2 days ago

Hii @sagar-vaghela , you do not need to do any thing, only you update your server > models > postMessage.js file by this code `import mongoose from 'mongoose';

const postSchema = mongoose.Schema( { title: String, message: String, creator: String, tags: [String], selectedFile: String, likeCount: { type: Number, default: 0, }, }, { timestamps: true } );

var PostMessage = mongoose.model('PostMessage', postSchema);

export default PostMessage; `