Skip to content

Commit

Permalink
Add Recent Month
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusVilicus committed Apr 12, 2020
1 parent e7210d3 commit e74fb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const resolvers = {
let coll = User.collection
let latestDate = new Date('02 December 2019')
let now = new Date()
let monthsSince = monthDiff(latestDate, now) + 1
let monthsSince = monthDiff(latestDate, now) + 2
let arr = []
for(let i = 0; i < monthsSince; i++) {
let newDate = new Date(latestDate)
Expand Down

0 comments on commit e74fb7a

Please sign in to comment.