From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks
---
inc/rest/routes/Invitations.php | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/rest/routes/Invitations.php b/inc/rest/routes/Invitations.php
index 90f0385..9dbb49f 100644
--- a/inc/rest/routes/Invitations.php
+++ b/inc/rest/routes/Invitations.php
@@ -88,8 +88,8 @@
];
// Check cache
- $key = $this->cache->generateKey($args);
- if ($cached = $this->cache->get($key)) {
+
+ if ($cached = $this->cache->get($args)) {
return $this->success($cached);
}
@@ -99,7 +99,7 @@
: $this->getUserInvitations($args);
// Cache result
- $this->cache->set($key, $result);
+ $this->cache->set($args, $result);
return $this->success($result);
}
@@ -107,7 +107,7 @@
/**
* Get invitations for a specific term
*/
- protected function getTermInvitations(array $args): array
+ public function getTermInvitations(array $args): array
{
// Check permission
if (!Roles::getInstance()()->isManager($args['user'], $args['to_term'])) {
--
Gitblit v1.10.0