Skip to content

Commit

Permalink
Switch from Planetscale to Aiven for MySQL (#21)
Browse files Browse the repository at this point in the history
* switch from Planetscale to Aiven for MySQL

* fix index out of bounds bug
  • Loading branch information
effward authored Apr 22, 2024
1 parent ad5b15f commit a4f05a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/routes/error/not_found/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub fn render_not_found<B>(res: ServiceResponse<B>) -> Result<ErrorHandlerRespon

fn build_response(tera: &Tera, user_context: &mut UserContext) -> 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];
}

Expand Down

0 comments on commit a4f05a3

Please sign in to comment.