feat(chart): Moon chart from D1 and transit chart for today in the natal houses (T4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017eEAG8HD3mm8gsKXgk8uU8
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2071dc7c18
commit
3f6bcb081a
@@ -13,6 +13,7 @@ import {
|
||||
import { dailyProfilePayload } from "@/lib/global-birth-payloads";
|
||||
import { consumeUserRequestRateLimit } from "@/lib/request-rate-limit";
|
||||
import { globalBirthProfileFromAccountRow } from "@/lib/server-owned-birth-profile";
|
||||
import { transitChartBody } from "@/lib/transit-chart-body";
|
||||
import { ConsultationSubjectError, loadSubjectBirth, subjectIdFromQuery } from "@/lib/subject-birth";
|
||||
import { createServerSupabaseClient } from "@/lib/supabase/server";
|
||||
|
||||
@@ -215,20 +216,3 @@ export async function GET(request: Request) {
|
||||
}
|
||||
return NextResponse.json(parsed.data);
|
||||
}
|
||||
|
||||
function transitChartBody(birth: BirthPayload, date: string): Record<string, unknown> {
|
||||
const [year, month, day] = date.split("-").map(Number);
|
||||
return {
|
||||
year,
|
||||
month,
|
||||
day,
|
||||
hour: 12,
|
||||
minute: 0,
|
||||
lat: birth.lat,
|
||||
lon: birth.lon,
|
||||
tz: birth.tz,
|
||||
ayanamsa: birth.ayanamsa,
|
||||
node_mode: birth.node_mode,
|
||||
skip_vedastro_main_entry_overview: true,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user