@zodic/shared 0.0.304 → 0.0.305
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.
|
@@ -603,6 +603,7 @@ export class ArchetypeService {
|
|
|
603
603
|
.from(schema.archetypesData)
|
|
604
604
|
.groupBy(schema.archetypesData.combination)
|
|
605
605
|
.having(sql`count(*) < 12`)
|
|
606
|
+
.limit(400)
|
|
606
607
|
.execute();
|
|
607
608
|
|
|
608
609
|
const typedResult = result.map((row) => ({
|
|
@@ -798,10 +799,11 @@ export class ArchetypeService {
|
|
|
798
799
|
const db = this.context.drizzle();
|
|
799
800
|
const incomplete = await this.findIncompleteCombinations();
|
|
800
801
|
console.log(`🔎 [Fetch] Retrieved ${incomplete.length} incomplete combinations`);
|
|
802
|
+
const limited = incomplete.slice(0, 400);
|
|
801
803
|
|
|
802
804
|
const compositions: Composition[] = [];
|
|
803
805
|
|
|
804
|
-
for (const { combination } of
|
|
806
|
+
for (const { combination } of limited) {
|
|
805
807
|
console.log(`🔍 [Fetch] Processing combination: ${combination}`);
|
|
806
808
|
const [sun, ascendant, moon] = combination.split('-') as ZodiacSignSlug[];
|
|
807
809
|
|
|
@@ -835,7 +837,7 @@ export class ArchetypeService {
|
|
|
835
837
|
}
|
|
836
838
|
}
|
|
837
839
|
|
|
838
|
-
console.log(`📦 [Fetch] Total compositions to regenerate: ${compositions.length}`);
|
|
840
|
+
console.log(`📦 [Fetch] Total compositions to regenerate (limited to 400): ${compositions.length}`);
|
|
839
841
|
|
|
840
842
|
|
|
841
843
|
return compositions;
|