This commit is contained in:
D. Scott Boggs 2023-06-17 13:19:27 -04:00
parent bdb09b33c6
commit e2efd6fe66

View file

@ -60,7 +60,7 @@ pub(super) async fn update_tick(
#[delete("/<id>")]
pub(super) async fn delete_tick(db: &State<DatabaseConnection>, id: i32) -> ApiResult<Status> {
Tracks::delete_by_id(id)
Ticks::delete_by_id(id)
.exec(db as &DatabaseConnection)
.await
.map_err(Error::from)?;