Skip to content

Commit

Permalink
chore(database): add log about number of events to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Oct 31, 2023
1 parent 9896b60 commit 8ccdbea
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ impl MigrationTrait for Migration {
.into_tuple::<(Date, i32)>()
.all(db)
.await?;
println!(
"\nFound {} duplicate calendar events. Removing them...",
events.len()
);
for evt in events {
let mut duplicate_events_group = ce::Entity::find()
.select_only()
Expand Down Expand Up @@ -76,6 +80,7 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;
println!("Operation successful!\n",);
Ok(())
}

Expand Down

0 comments on commit 8ccdbea

Please sign in to comment.