diff --git a/README.md b/README.md index bb3fff8..e77a956 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ cargo fmt ## Environment Variables Set the following environment variables: -- DATABASE_URL (PlanetScale) +- DATABASE_URL (Aiven shared-sql instance) - HMAC_KEY (Generate 512 bit key [here](https://generate-random.org/api-key-generator/512-bit/mixed-numbers)) - REDIS_URI (redis://127.0.0.1:6379) diff --git a/src/routes/error/not_found/get.rs b/src/routes/error/not_found/get.rs index 7666d71..e360867 100644 --- a/src/routes/error/not_found/get.rs +++ b/src/routes/error/not_found/get.rs @@ -51,7 +51,7 @@ pub fn render_not_found(res: ServiceResponse) -> Result HttpResponse { let mut missing_type = DEFAULT_MISSING_TYPE; - if user_context.flash_messages.is_empty() { + if !user_context.flash_messages.is_empty() { missing_type = &user_context.flash_messages[0]; }