remove saved comments
This commit is contained in:
parent
ddbd2c330a
commit
20ae3a8717
1 changed files with 0 additions and 24 deletions
24
src/main.rs
24
src/main.rs
|
@ -63,30 +63,6 @@ async fn main() {
|
||||||
|
|
||||||
let state = AppState::init().await;
|
let state = AppState::init().await;
|
||||||
|
|
||||||
// let shift = {
|
|
||||||
// let mut conn = state.connection.get().await.unwrap();
|
|
||||||
// conn.transaction(|conn| {
|
|
||||||
// use cm_lib::schema::shifts;
|
|
||||||
//
|
|
||||||
// async move {
|
|
||||||
// diesel::insert_into(shifts::table)
|
|
||||||
// .default_values()
|
|
||||||
// .execute(conn)
|
|
||||||
// .await?;
|
|
||||||
//
|
|
||||||
// shifts::table
|
|
||||||
// .order(shifts::id.desc())
|
|
||||||
// .select(Shift::as_select())
|
|
||||||
// .first(conn)
|
|
||||||
// .await
|
|
||||||
// }
|
|
||||||
// .scope_boxed()
|
|
||||||
// })
|
|
||||||
// .await
|
|
||||||
// };
|
|
||||||
|
|
||||||
// tracing::debug!("{shift:?}");
|
|
||||||
|
|
||||||
// build our application with a route
|
// build our application with a route
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.nest("/api", api::router())
|
.nest("/api", api::router())
|
||||||
|
|
Loading…
Reference in a new issue