@zodic/shared 0.0.303 → 0.0.304
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.
|
@@ -793,14 +793,16 @@ export class ArchetypeService {
|
|
|
793
793
|
`🎉 [Batch] Completed regenerating ${compositions.length} combinations`
|
|
794
794
|
);
|
|
795
795
|
}
|
|
796
|
-
|
|
796
|
+
|
|
797
797
|
async fetchMissingArchetypeCompositions(): Promise<Composition[]> {
|
|
798
798
|
const db = this.context.drizzle();
|
|
799
799
|
const incomplete = await this.findIncompleteCombinations();
|
|
800
|
+
console.log(`🔎 [Fetch] Retrieved ${incomplete.length} incomplete combinations`);
|
|
800
801
|
|
|
801
802
|
const compositions: Composition[] = [];
|
|
802
803
|
|
|
803
804
|
for (const { combination } of incomplete) {
|
|
805
|
+
console.log(`🔍 [Fetch] Processing combination: ${combination}`);
|
|
804
806
|
const [sun, ascendant, moon] = combination.split('-') as ZodiacSignSlug[];
|
|
805
807
|
|
|
806
808
|
const existing = await db
|
|
@@ -829,13 +831,13 @@ export class ArchetypeService {
|
|
|
829
831
|
moon,
|
|
830
832
|
indexesToGenerate,
|
|
831
833
|
});
|
|
834
|
+
console.log(`✅ [Fetch] Will regenerate indexes [${indexesToGenerate.join(', ')}] for ${combination}`);
|
|
832
835
|
}
|
|
833
836
|
}
|
|
834
837
|
|
|
835
|
-
console.log(
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
838
|
+
console.log(`📦 [Fetch] Total compositions to regenerate: ${compositions.length}`);
|
|
839
|
+
|
|
840
|
+
|
|
839
841
|
return compositions;
|
|
840
842
|
}
|
|
841
843
|
}
|