feat: with persistent state
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
746fb68684
commit
b3af0be6b5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user