refactor: rename validation trait
This commit is contained in:
parent
93574c3ac5
commit
e5df98a515
@ -1,11 +1,11 @@
|
|||||||
mod email;
|
mod email;
|
||||||
mod error;
|
mod error;
|
||||||
mod r#trait;
|
mod validation_trait;
|
||||||
|
|
||||||
use chrono::NaiveDateTime;
|
use chrono::NaiveDateTime;
|
||||||
pub use email::email_is_valid;
|
pub use email::email_is_valid;
|
||||||
pub use error::AsyncValidateError;
|
pub use error::AsyncValidateError;
|
||||||
pub use r#trait::AsyncValidate;
|
pub use validation_trait::AsyncValidate;
|
||||||
use sqlx::PgPool;
|
use sqlx::PgPool;
|
||||||
|
|
||||||
pub struct DbContext<'a> {
|
pub struct DbContext<'a> {
|
||||||
|
@ -63,7 +63,7 @@ pub async fn handle_command(
|
|||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
match command {
|
match command {
|
||||||
Some(Command::Migrate) => {
|
Some(Command::Migrate) => {
|
||||||
sqlx::migrate!("../migrations").run(pool).await?;
|
sqlx::migrate!("../db/migrations").run(pool).await?;
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user