From 195aa4f8f11a2117e5497d3feb9faafb08dd84f9 Mon Sep 17 00:00:00 2001 From: Dillon Date: Fri, 28 Jul 2023 15:58:28 +0800 Subject: [PATCH] Getting ready for production deployment for phase 2 of Voucherify --- .../Modules/Accounts/Processors/AuthenticationProcessor.php | 2 +- .../Vouchers/Services/Voucherify/CreatesVoucherifyVoucher.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Classes/Modules/Accounts/Processors/AuthenticationProcessor.php b/app/Classes/Modules/Accounts/Processors/AuthenticationProcessor.php index 707369e9..a310fdb3 100644 --- a/app/Classes/Modules/Accounts/Processors/AuthenticationProcessor.php +++ b/app/Classes/Modules/Accounts/Processors/AuthenticationProcessor.php @@ -82,7 +82,7 @@ class AuthenticationProcessor } //cief todo: case study 1 - //$this->checkMilestonesForRewardProcessor->execute($user, [Milestones::MILESTONE_1]); + $this->checkMilestonesForRewardProcessor->execute($user, [Milestones::MILESTONE_1]); return ['access_token' => $this->generatesAuthenticationToken->execute($user), 'redirect_url' => $this->authenticationRedirect->url($user)]; } diff --git a/app/Classes/Modules/Vouchers/Services/Voucherify/CreatesVoucherifyVoucher.php b/app/Classes/Modules/Vouchers/Services/Voucherify/CreatesVoucherifyVoucher.php index f3d14bb7..ad95946b 100644 --- a/app/Classes/Modules/Vouchers/Services/Voucherify/CreatesVoucherifyVoucher.php +++ b/app/Classes/Modules/Vouchers/Services/Voucherify/CreatesVoucherifyVoucher.php @@ -47,8 +47,8 @@ class CreatesVoucherifyVoucher "metadata" => [ "email" => $user->email ], - "start_date" => $startDate->format('Y-m-d H:i:s'), - "expiration_date" => $expirationDate->format('Y-m-d H:i:s') + "start_date" => $startDate->toIso8601String(), + "expiration_date" => $expirationDate->toIso8601String() ]); return $result; } catch (\Voucherify\ClientException $e) {