mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
f7d0f40850
commit
08292c350d
1 changed files with 1 additions and 2 deletions
|
@ -418,7 +418,6 @@ const eventController = {
|
|||
},
|
||||
|
||||
async _select ({ start, end, tags, places }) {
|
||||
debug('_select start: %s, end: %s, tags: %s', dayjs.unix(start), end, tags)
|
||||
const where = {
|
||||
recurrent: null,
|
||||
// confirmed event only
|
||||
|
@ -504,7 +503,7 @@ const eventController = {
|
|||
if (frequency[1] === 'w') {
|
||||
cursor = cursor.day(start_date.day())
|
||||
if (cursor.isBefore(dayjs())) {
|
||||
cursor = cursos.add(7, 'day')
|
||||
cursor = cursor.add(7, 'day')
|
||||
}
|
||||
if (frequency[0] === 2) {
|
||||
cursor = cursor.add(7, 'day')
|
||||
|
|
Loading…
Reference in a new issue