Skip to content

Commit

Permalink
back to old settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jun 3, 2024
1 parent 92e8337 commit d2ac582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastify/get-post/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function (fastify, opts, done) {
let endDate = new Date();
// Get the date one week earlier
let startDate = new Date();
startDate.setDate(endDate.getDate() - 7);
startDate.setDate(endDate.getDate() - 30);

// Format the dates as needed (e.g., "YYYY-MM-DD")
let endDateStr = endDate.toISOString().split('T')[0];
Expand Down Expand Up @@ -101,7 +101,7 @@ module.exports = function (fastify, opts, done) {
let endDate = new Date();
// Get the date one week earlier
let startDate = new Date();
startDate.setDate(endDate.getDate() - 7);
startDate.setDate(endDate.getDate() - 30);

// Format the dates as needed (e.g., "YYYY-MM-DD")
let endDateStr = endDate.toISOString().split('T')[0];
Expand Down

0 comments on commit d2ac582

Please sign in to comment.