mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Optimized chore on-time tracking (closes #2385)
This commit is contained in:
@@ -187,11 +187,13 @@ class ChoresService extends BaseService
|
||||
}
|
||||
}
|
||||
|
||||
$scheduledExecutionTime = $this->getDatabase()->chores_current()->where('chore_id = :1', $chore->id)->fetch()->next_estimated_execution_time;
|
||||
$logRow = $this->getDatabase()->chores_log()->createRow([
|
||||
'chore_id' => $choreId,
|
||||
'tracked_time' => $trackedTime,
|
||||
'done_by_user_id' => $doneBy,
|
||||
'skipped' => BoolToInt($skipped)
|
||||
'skipped' => BoolToInt($skipped),
|
||||
'scheduled_execution_time' => $scheduledExecutionTime
|
||||
]);
|
||||
$logRow->save();
|
||||
$lastInsertId = $this->getDatabase()->lastInsertId();
|
||||
|
Reference in New Issue
Block a user