Skip to content

Commit

Permalink
Refactor report model
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Aug 20, 2024
1 parent 778b5e1 commit e60da98
Show file tree
Hide file tree
Showing 6 changed files with 235 additions and 379 deletions.
5 changes: 1 addition & 4 deletions src/command/generate_reports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ mod test {
area_tags.insert("url_alias".into(), json!("test"));
Area::insert(area_tags, &state.conn)?;
for _ in 1..100 {
state
.report_repo
.insert(1, &date!(2023 - 11 - 12), &Map::new())
.await?;
Report::insert(1, &date!(2023 - 11 - 12), &Map::new(), &state.conn)?;
}
Ok(())
}
Expand Down
Loading

0 comments on commit e60da98

Please sign in to comment.