Commit 3dd7a653 authored by Jarek Ostrowski's avatar Jarek Ostrowski

Fix postedDate type

parent fff5720d
Pipeline #63807259 passed with stage
in 3 minutes and 49 seconds
......@@ -95,7 +95,7 @@ var Submission = mongoose.model('Submission', {
description: String,
request: String,
reviews: [{ type: Schema.Types.ObjectId, ref: 'Review' }],
postedDate: new Date(),
postedDate: String,
views: Number,
linkClicks: Number
})
......@@ -267,7 +267,7 @@ app.post('/upload', upload.single('thumbnail'), (req, res, next) => {
cloudinaryImageSource = result.secure_url
console.log(cloudinaryImageSource, 'inside upload to cloudinary')
var todaysDate = new Date()
var todaysDate = new Date();
var date = todaysDate.getDate()
var month = todaysDate.getMonth()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment