From f0fe1b1760a59589548216991f379663a5e24a7e Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 7 Nov 2019 08:38:06 -0500 Subject: [PATCH] Fixed #181 - Connecting to Patreon sits at "Waiting for Patreon..." When I added transactions to everything a while back I neglected to notice that the Patreon initialize echoes some JavaScript and then dies. The die() was rolling back the transaction where the token and stuff got inserted. --- api/patreon.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/patreon.php b/api/patreon.php index dafa51d..9211ffb 100644 --- a/api/patreon.php +++ b/api/patreon.php @@ -43,6 +43,10 @@ class patreon extends external_api { } echo ''; + + // Need to commit the transaction so the stuff gets saved. + $this->database->commit_transaction(); + die(); }