From a6413da67a4579866f0fd0323ddb23a7b6b9654a Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 18 Sep 2026 17:00:53 +0000
Subject: [PATCH] =Cleaning up the Integrations setup a bit, started the Helcim integration work too
---
inc/integrations/Auth.php | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/inc/integrations/Auth.php b/inc/integrations/Auth.php
index 85dc232..231c07b 100644
--- a/inc/integrations/Auth.php
+++ b/inc/integrations/Auth.php
@@ -79,6 +79,12 @@
return (bool)$updated;
}
+ public function getLastUpdated(string $service, ?int $userID = null):?string
+ {
+ $find = $this->findBy($service, $userID);
+ return $this->table->pluck('updated_at', $find)[0]??null;
+ }
+
/**
* Retrieve and decrypt credentials
*/
@@ -164,6 +170,12 @@
], $find);
}
+ public function getLastTested(string $service, ?int $userID = null):?string
+ {
+ $find = $this->findBy($service, $userID);
+ return $this->table->pluck('last_tested', $find)[0]??null;
+ }
+
public function markUnhealthy(string $service, string $type = '', ?int $userID = null):void
{
$update = [];
--
Gitblit v1.10.0