Got rid of extra timestamp field.
This commit is contained in:
1 parent
7b95894239
commit
a36665396d
1 file changed
-5
@@ -8,7 +8,6 @@ const mongoose = require("mongoose");
|
|||||||
* @property {Object} bestPractices - Metrics related to best practices category.
|
* @property {Object} bestPractices - Metrics related to best practices category.
|
||||||
* @property {Object} seo - Metrics related to SEO category.
|
* @property {Object} seo - Metrics related to SEO category.
|
||||||
* @property {Object} performance - Metrics related to performance category.
|
* @property {Object} performance - Metrics related to performance category.
|
||||||
* @property {Date} timestamp - Timestamp when the metrics were recorded.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const MetricsSchema = mongoose.Schema(
|
const MetricsSchema = mongoose.Schema(
|
||||||
@@ -34,10 +33,6 @@ const MetricsSchema = mongoose.Schema(
|
|||||||
type: Object,
|
type: Object,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
timestamp: {
|
|
||||||
type: Date,
|
|
||||||
default: Date.now,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
timestamps: true,
|
timestamps: true,
|
||||||
|
|||||||
Reference in new issue
Block a user