From b3af0be6b5e54e1f82401747203600bac22a27b2 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 28 May 2023 15:37:46 +0200 Subject: [PATCH] feat: with persistent state Signed-off-by: kjuulh --- como_infrastructure/src/register.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/como_infrastructure/src/register.rs b/como_infrastructure/src/register.rs index 2196379..7a7c475 100644 --- a/como_infrastructure/src/register.rs +++ b/como_infrastructure/src/register.rs @@ -30,6 +30,8 @@ impl ServiceRegister { let user_service = Arc::new(DefaultUserService::new(pool.clone())) as DynUserService; let store = PostgresSessionStore::new(&config.database_url).await?; + store.migrate().await?; + info!("services created succesfully"); Ok(Self {