@scalemule/news-publication 0.0.52 → 0.0.53

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.
@@ -1,4 +1,4 @@
1
- import { PetsSection, PawOfTheWeekCard, AdoptionListingCard, PetEventCard, PetCelebrationCard, LostPetNotice, PetProfileCard } from './chunk-N4JMMFPK.js';
1
+ import { PetsSection, PawOfTheWeekCard, AdoptionListingCard, PetEventCard, PetCelebrationCard, LostPetNotice, PetProfileCard } from './chunk-KNO2LIDQ.js';
2
2
  import './chunk-4JRWZXAP.js';
3
3
  import './chunk-66GI2IX6.js';
4
4
  import { petRequest, petAcknowledgments, resolvePetReferences } from './chunk-ABPJMDUG.js';
@@ -56,7 +56,7 @@ async function PublicationPetsSection({
56
56
  week: monday.toISOString().split("T")[0]
57
57
  });
58
58
  if (chosen) weekly.set("area_id", chosen.id);
59
- const [feeds, spotlights] = await Promise.all([
59
+ const [feeds, spotlights, acknowledgments] = await Promise.all([
60
60
  Promise.all(
61
61
  ["neighbors", "lost_found", "celebration", "adoption"].map((kind) => {
62
62
  const q = new URLSearchParams(filter);
@@ -68,7 +68,8 @@ async function PublicationPetsSection({
68
68
  );
69
69
  })
70
70
  ),
71
- petRequest(scope, root + "/pets?" + weekly)
71
+ petRequest(scope, root + "/pets?" + weekly),
72
+ petAcknowledgments(scope, chosen?.slug)
72
73
  ]);
73
74
  const clean = (r) => ({
74
75
  ...r,
@@ -96,7 +97,7 @@ async function PublicationPetsSection({
96
97
  accountUrl: native ? "/pets/account" : void 0,
97
98
  communities: collection.areas,
98
99
  community: chosen,
99
- acknowledgments: await petAcknowledgments(scope, chosen?.slug),
100
+ acknowledgments,
100
101
  resources: feeds.flatMap((feed) => feed.items).map(clean),
101
102
  spotlight: spotlights.items[0] && clean(spotlights.items[0]),
102
103
  mediaUrl,