abmp-npm 1.8.41 → 1.8.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/routers-methods.js +3 -3
- package/package.json +1 -1
- package/public/consts.js +4 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const { DEFAULT_SEO_DESCRIPTION, ABMP_LOGO_URL } = require('../public');
|
|
2
2
|
|
|
3
|
+
const { fetchAllItemsInParallel: _fetchAllItemsInParallel } = require('./cms-data-methods');
|
|
3
4
|
const { getMemberBySlug } = require('./members-data-methods');
|
|
4
5
|
const { generateSEOTitle, stripHtmlTags, getMemberProfileData } = require('./routers-utils');
|
|
5
6
|
|
|
@@ -131,10 +132,9 @@ async function profileRouter(request, dependencies) {
|
|
|
131
132
|
* Profile sitemap generator
|
|
132
133
|
* @param {Object} _sitemapRequest - Sitemap request object
|
|
133
134
|
* @param {Object} _dependencies - Dependencies (WixRouterSitemapEntry)
|
|
134
|
-
* @param {Function} _fetchAllItemsInParallel - Function to fetch all items in parallel
|
|
135
135
|
* @returns {Promise<Array>} Sitemap entries
|
|
136
136
|
*/
|
|
137
|
-
async function profileSiteMap(_sitemapRequest, _dependencies
|
|
137
|
+
async function profileSiteMap(_sitemapRequest, _dependencies) {
|
|
138
138
|
return [];
|
|
139
139
|
// Commented out - currently disabled in host site
|
|
140
140
|
/*
|
|
@@ -148,7 +148,7 @@ async function profileSiteMap(_sitemapRequest, _dependencies, _fetchAllItemsInPa
|
|
|
148
148
|
.ne('action', 'drop')
|
|
149
149
|
.fields('url', 'fullName');
|
|
150
150
|
|
|
151
|
-
const allMembers = await
|
|
151
|
+
const allMembers = await _fetchAllItemsInParallel(membersQuery);
|
|
152
152
|
|
|
153
153
|
const batchSize = 1000;
|
|
154
154
|
const sitemapEntries = [];
|
package/package.json
CHANGED
package/public/consts.js
CHANGED
|
@@ -92,6 +92,9 @@ const FREE_WEBSITE_TEXT_STATES = {
|
|
|
92
92
|
|
|
93
93
|
const DEFAULT_BUSINESS_NAME_TEXT = 'Business name not provided';
|
|
94
94
|
|
|
95
|
+
const DEFAULT_SEO_DESCRIPTION =
|
|
96
|
+
'Find a licensed ABMP massage therapist or bodyworker near you! Powered by Associated Bodywork & Massage Professionals. ';
|
|
97
|
+
|
|
95
98
|
const DEFAULT_PROFILE_IMAGE =
|
|
96
99
|
'https://static.wixstatic.com/media/1d7134_e052e9b1d0a543d0980650e16dd6d374~mv2.jpg';
|
|
97
100
|
|
|
@@ -117,6 +120,7 @@ module.exports = {
|
|
|
117
120
|
ABMP_MEMBERS_HOME_URL,
|
|
118
121
|
FREE_WEBSITE_TEXT_STATES,
|
|
119
122
|
DEFAULT_BUSINESS_NAME_TEXT,
|
|
123
|
+
DEFAULT_SEO_DESCRIPTION,
|
|
120
124
|
DEFAULT_PROFILE_IMAGE,
|
|
121
125
|
ABMP_LOGO_URL,
|
|
122
126
|
SITE_ASSOCIATION,
|