From 138c5d84f450e072ab4dea5964766944ffa6e7a3 Mon Sep 17 00:00:00 2001
From: David Ashby <delta.mu.alpha@gmail.com>
Date: Tue, 18 Mar 2025 22:00:44 -0400
Subject: [PATCH] missing meta field

---
 index.js    | 2 +-
 stores.json | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index ca85bb5..7c5bd8c 100644
--- a/index.js
+++ b/index.js
@@ -41,7 +41,7 @@ function cleanWebsite(str) {
 }
 
 function metaDescription({ name, meta, description }) {
-  if (meta.length > 155 || meta.length < 145 && meta.length !== 0) {
+  if (meta && (meta.length > 155 || meta.length < 145 && meta.length !== 0)) {
     console.log(`warning: meta tag for ${name} is invalid: 145/${meta.length}/155`)
   }
   return meta || description.length > 155 ? description.slice(0, 153) + "..." : description || "A guide to and map of every independent bookstore in New York City. We have a complete list of community bookstores in NYC with locations and descriptions."
diff --git a/stores.json b/stores.json
index be31db0..1420118 100644
--- a/stores.json
+++ b/stores.json
@@ -341,7 +341,8 @@
     "country": "USA",
     "website": "https://shop.shakeandco.com/",
     "events": "Yes",
-    "cafe": "Yes"
+    "cafe": "Yes",
+    "meta": ""
   },
   {
     "name": "Book Culture",