Tonight's aim: deploy the newest version of OJF to the demo site.
I need to restore the host editing pages for that, and then we're good to go. Mostly.
Tonight's aim: deploy the newest version of OJF to the demo site.
I need to restore the host editing pages for that, and then we're good to go. Mostly.
...I ended up working on the invite page for some reason.
Hosts view page resurrected. Going to add profile update, host update, delete & create, and then OJF is almost ready to deploy as a demo, again.
pub async fn update(
State(ctx): State<Arc<Context>>,
Extension(account): Extension<Account>,
Form(update): Form<ProfileUpdate>,
) -> Result<Redirect, Error> {
let _ = account
.update(&ctx.db, update.email, update.password)
.await
.map_err(|_| Error::database())?;
Ok(Redirect::to("/me/"))
}
I'm not sure why I was delaying this so much. Middleware take care of everything. By the time control reaches the handler, everything is neatly verified, and all I need to do is hit the database and redirect.
Is it deploy time?
Huh. The initial SQL migration fails to run on Quickbeam. Huh.
Oh, yeah, right. I needed to drop the database and the types and whatnot first.
THERE WE GO!
Took a bit of hackery to get things working, because the NixOS module does not let me configure it yet, so I... uhhh...
algernon tries to hide his shell history, but a doas systemctl edit --runtime onlyjunk-fans.service peeks out anyway