Create local instance user on start

This commit is contained in:
Kitaiti Makoto 2021-12-05 21:34:36 +09:00
parent 13be46445c
commit 346a67fe1c

View File

@ -59,6 +59,7 @@ fn init_pool() -> Option<DbPool> {
let pool = builder.build(manager).ok()?; let pool = builder.build(manager).ok()?;
let conn = pool.get().unwrap(); let conn = pool.get().unwrap();
Instance::cache_local(&conn); Instance::cache_local(&conn);
Instance::create_local_instance_user(&conn);
Instance::cache_local_instance_user(&conn); Instance::cache_local_instance_user(&conn);
Some(pool) Some(pool)
} }