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 }) {
|
async _select ({ start, end, tags, places }) {
|
||||||
debug('_select start: %s, end: %s, tags: %s', dayjs.unix(start), end, tags)
|
|
||||||
const where = {
|
const where = {
|
||||||
recurrent: null,
|
recurrent: null,
|
||||||
// confirmed event only
|
// confirmed event only
|
||||||
|
@ -504,7 +503,7 @@ const eventController = {
|
||||||
if (frequency[1] === 'w') {
|
if (frequency[1] === 'w') {
|
||||||
cursor = cursor.day(start_date.day())
|
cursor = cursor.day(start_date.day())
|
||||||
if (cursor.isBefore(dayjs())) {
|
if (cursor.isBefore(dayjs())) {
|
||||||
cursor = cursos.add(7, 'day')
|
cursor = cursor.add(7, 'day')
|
||||||
}
|
}
|
||||||
if (frequency[0] === 2) {
|
if (frequency[0] === 2) {
|
||||||
cursor = cursor.add(7, 'day')
|
cursor = cursor.add(7, 'day')
|
||||||
|
|
Loading…
Reference in a new issue