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
5.03k stars 1.85k forks source link

create a memory timing issue #200

Open sagar-vaghela opened 5 months ago

sagar-vaghela commented 5 months 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 5 months ago

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

sagar-vaghela commented 5 months ago

It is already fixed by @ansuha.

PR already raised. please review and merge

Santosh130602 commented 4 months 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; `

manan228 commented 4 months ago

@sagar-vaghela is it still open?, if yes please assign it to me, I can fix this issue

raunak076 commented 3 months ago

Please assign this issue to me . We have solved this issue by changing the timestamps value and date.now() while adding post