chore: simplify plugin
This commit is contained in:
parent
2d9265aae8
commit
83c9b6ca95
1 changed files with 1 additions and 3 deletions
|
@ -6,7 +6,7 @@ const getKeys = (months = 1) => {
|
|||
const currentDate = DateTime.now()
|
||||
const weeks = Math.floor((currentDate.daysInMonth * months) / 7)
|
||||
let count = 0
|
||||
const keys = []
|
||||
const keys = [`${currentDate.year}-${currentDate.weekNumber}`]
|
||||
|
||||
while (count < weeks) {
|
||||
const weeks = 1 * (count + 1)
|
||||
|
@ -15,8 +15,6 @@ const getKeys = (months = 1) => {
|
|||
count++;
|
||||
}
|
||||
|
||||
keys.push(`${currentDate.year}-${currentDate.weekNumber}`)
|
||||
|
||||
return keys
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue