mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Fix tasks being unscheduled if the day for the task already exists
This commit is contained in:
parent
dee7a6fa42
commit
3e7c9b150a
6 changed files with 26 additions and 6 deletions
2
external/mirai-core/src/Source.cpp
vendored
2
external/mirai-core/src/Source.cpp
vendored
|
@ -29,8 +29,8 @@ void Source::createTask(const createTaskParams &task)
|
|||
auto day = data->getDayByDate(task.date.value());
|
||||
if (!day.has_value() && task.date.has_value()) {
|
||||
day = data->insertDay({.id = generateUniqueId(), .date = task.date.value()});
|
||||
dayId = day->id;
|
||||
}
|
||||
dayId = day->id;
|
||||
}
|
||||
|
||||
if (task.event.has_value() && task.event->id()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue