From 9e4a37baabd96092333f82363faefe81672f2e24 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 21 Jul 2022 15:20:10 +0700 Subject: [PATCH] Do the thing with the postgres url --- CurrencyAPI/Currency.fs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CurrencyAPI/Currency.fs b/CurrencyAPI/Currency.fs index 8f773ff..b08ed56 100644 --- a/CurrencyAPI/Currency.fs +++ b/CurrencyAPI/Currency.fs @@ -15,6 +15,8 @@ open Npgsql.FSharp DotEnv.Load(DotEnvOptions(envFilePaths = [ "../.prod.env" ], overwriteExistingVars = false)) let connStr = Environment.GetEnvironmentVariable("DATABASE_URL") + .Replace("postgresql://", "postgres://") + .Replace("?sslmode=require", "") let apiKey = Environment.GetEnvironmentVariable("API_KEY") let validateApiKey (ctx : HttpContext) =