You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test requires that the repeated response have a flash message, which is not in fact in the code; I had to add it like so:
// Return early if we have a saved response in the database
if let Some(saved_response) = get_saved_response(&pool, &idempotency_key, *user_id)
.await
.map_err(e500)?
{
FlashMessage::info("The newsletter issue has been published!").send();
return Ok(saved_response);
}