Skip to content

Commit

Permalink
Update price-history.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tripathyr authored Oct 22, 2024
1 parent 41250af commit 714ad06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion models/price-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ const Schema = new mongoose.Schema({
inr: {
type: Number,
required: true
},
count: {
type: Number, // New field to track the number of updates for the day
default: 1
}
});
module.exports = mongoose.model('PriceHistory', Schema);

module.exports = mongoose.model('PriceHistory', Schema);

0 comments on commit 714ad06

Please sign in to comment.