mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-02-14 22:15:16 +00:00
Use Instance::get_locals() in ensure_local_instance_keys()
This commit is contained in:
parent
1ed60537cf
commit
a3623412f9
1 changed files with 4 additions and 2 deletions
|
@ -302,8 +302,10 @@ pub fn migrate_data(dbpool: &DbPool) -> Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ensure_local_instance_keys(conn: &Connection) -> Result<()> {
|
fn ensure_local_instance_keys(conn: &Connection) -> Result<()> {
|
||||||
let instance = Instance::get_local()?;
|
for instance in Instance::get_locals(conn)? {
|
||||||
instance.set_keypair(conn)
|
instance.set_keypair(conn)?;
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
Loading…
Reference in a new issue