Fix issue with running time entries causing crashes when saving
All checks were successful
Build and Publish Docker Container / build (push) Successful in 3m14s
All checks were successful
Build and Publish Docker Container / build (push) Successful in 3m14s
This commit is contained in:
parent
ad20c602b7
commit
4761428f33
@ -27,6 +27,8 @@ pub async fn update_database(
|
||||
) -> utils::Result<UpdateStats> {
|
||||
let (deleted_entries, time_entries) = time_entries
|
||||
.iter()
|
||||
// Filter out running time entries
|
||||
.filter(|entry| entry.stop.is_some())
|
||||
.partition::<Vec<_>, _>(|entry| entry.server_deleted_at.is_some());
|
||||
|
||||
let retrieved = UpdateStatsInner {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user