From 3baf3d2545ba6ece6b74a64c0def59bd0774cf54 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 10 Jun 2026 16:34:12 +0000
Subject: [PATCH] =Laid the groundwork for an improved DashboardManager.php setup. Have to put it aside so I can get the dang Northeh done though.

---
 inc/integrations/GoogleMyBusiness.php |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/inc/integrations/GoogleMyBusiness.php b/inc/integrations/GoogleMyBusiness.php
index c86d3ab..5893851 100644
--- a/inc/integrations/GoogleMyBusiness.php
+++ b/inc/integrations/GoogleMyBusiness.php
@@ -9,6 +9,11 @@
 
 class GoogleMyBusiness extends Integrations
 {
+	protected array $allowedContent = [
+		'menu_item',
+		'post',
+		'event',
+	];
 	private ?string $access_token = null;
 	protected string $readMask = 'name,title,storefrontAddress,metadata,openInfo,storeCode,categories,phoneNumbers,labels,specialHours';
 	private ?string $location = null;
@@ -319,8 +324,6 @@
 		} else {
 			$result = $this->createPost($data);
 			$meta->set("_{$this->service_name}_item_id", $result['name']);
-
-			$meta->save();
 		}
 
 		return [
@@ -374,7 +377,6 @@
 		} else {
 			$result = $this->createPost($data);
 			$meta->set("_{$this->service_name}_item_id", $result['name']);
-			$meta->save();
 		}
 
 		return [
@@ -426,7 +428,6 @@
 		} else {
 			$result = $this->createPost($data);
 			$meta->set("_{$this->service_name}_item_id", $result['name']);
-			$meta->save();
 		}
 
 		return [

--
Gitblit v1.10.0