@churchapps/content-providers 0.7.2 → 0.7.3

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/dist/index.cjs CHANGED
@@ -1394,8 +1394,8 @@ var B1ChurchProvider = class extends BaseProvider {
1394
1394
  const allPlans = await fetchPlans(planTypeId, authData);
1395
1395
  const yesterday = /* @__PURE__ */ new Date();
1396
1396
  yesterday.setDate(yesterday.getDate() - 1);
1397
- yesterday.setHours(0, 0, 0, 0);
1398
- const plans = allPlans.filter((p) => new Date(p.serviceDate).getTime() >= yesterday.getTime());
1397
+ const cutoff = `${yesterday.getFullYear()}-${String(yesterday.getMonth() + 1).padStart(2, "0")}-${String(yesterday.getDate()).padStart(2, "0")}`;
1398
+ const plans = allPlans.filter((p) => String(p.serviceDate).slice(0, 10) >= cutoff);
1399
1399
  plans.sort((a, b) => new Date(a.serviceDate).getTime() - new Date(b.serviceDate).getTime());
1400
1400
  const imageMap = await this.fetchPlanImages(plans, ministryId, authData);
1401
1401
  return plans.map((p) => {
@@ -17838,7 +17838,7 @@ function getAvailableProviders(ids) {
17838
17838
  }
17839
17839
 
17840
17840
  // src/index.ts
17841
- var VERSION = true ? "0.7.2" : "dev";
17841
+ var VERSION = true ? "0.7.3" : "dev";
17842
17842
  // Annotate the CommonJS export names for ESM import in node:
17843
17843
  0 && (module.exports = {
17844
17844
  APlayProvider,