rename backend binary
This commit is contained in:
+10
-10
@@ -14,13 +14,13 @@ use diesel::PgConnection;
|
||||
use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
|
||||
use http_body_util::BodyExt;
|
||||
use once_cell::sync::Lazy;
|
||||
use papercrate_backend::auth::jwt::JwtService;
|
||||
use papercrate_backend::config::AppConfig;
|
||||
use papercrate_backend::db::{self, PgPool};
|
||||
use papercrate_backend::models::{Job, NewUser};
|
||||
use papercrate_backend::routes;
|
||||
use papercrate_backend::state::AppState;
|
||||
use papercrate_backend::storage::ObjectStorage;
|
||||
use backend::auth::jwt::JwtService;
|
||||
use backend::config::AppConfig;
|
||||
use backend::db::{self, PgPool};
|
||||
use backend::models::{Job, NewUser};
|
||||
use backend::routes;
|
||||
use backend::state::AppState;
|
||||
use backend::storage::ObjectStorage;
|
||||
use rand::rngs::OsRng;
|
||||
use serde::Serialize;
|
||||
use tokio::sync::Mutex;
|
||||
@@ -183,7 +183,7 @@ impl TestApp {
|
||||
password_hash,
|
||||
role,
|
||||
};
|
||||
diesel::insert_into(papercrate_backend::schema::users::table)
|
||||
diesel::insert_into(backend::schema::users::table)
|
||||
.values(&user)
|
||||
.execute(conn)
|
||||
.context("failed to insert user")?;
|
||||
@@ -225,7 +225,7 @@ impl TestApp {
|
||||
#[allow(dead_code)]
|
||||
pub async fn clear_jobs(&self) -> Result<()> {
|
||||
self.with_conn(|conn| {
|
||||
use papercrate_backend::schema::jobs::dsl::jobs as jobs_table;
|
||||
use backend::schema::jobs::dsl::jobs as jobs_table;
|
||||
diesel::delete(jobs_table)
|
||||
.execute(conn)
|
||||
.context("failed to clear jobs")?;
|
||||
@@ -238,7 +238,7 @@ impl TestApp {
|
||||
pub async fn jobs_by_type(&self, ty: &str) -> Result<Vec<Job>> {
|
||||
let ty = ty.to_string();
|
||||
self.with_conn(move |conn| {
|
||||
use papercrate_backend::schema::jobs::dsl::{
|
||||
use backend::schema::jobs::dsl::{
|
||||
job_type as job_type_col, jobs as jobs_table,
|
||||
};
|
||||
let rows = jobs_table
|
||||
|
||||
Reference in New Issue
Block a user