mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
refactor(rollups): move mood-rollups under the umbrella
- src/lib/mood/rollups.ts → src/lib/rollups/mood-rollups.ts - co-located test follows the source file 17 importers updated from @/lib/mood/rollups to @/lib/rollups/mood-rollups, covering the mood-entries CRUD routes, the moodlog webhook, the import restore path, the insights comprehensive + targets routes, the analytics + features paths, and the reminder worker + moodlog sync job consumers. Pure relocation.
This commit is contained in:
1 parent
8cfb1715b4
commit
63e56f7a2d
19 files changed
+26
-26
No files matched your search
@@ -41,7 +41,7 @@ vi.mock("@/lib/rollups/measurement-rollups", async () => {
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock("@/lib/mood/rollups", () => ({
|
||||
vi.mock("@/lib/rollups/mood-rollups", () => ({
|
||||
recomputeUserMoodRollups: vi.fn().mockResolvedValue(undefined),
|
||||
}));
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
measurementTypeEnum,
|
||||
glucoseContextEnum,
|
||||
} from "@/lib/validations/measurement";
|
||||
import { recomputeUserMoodRollups } from "@/lib/mood/rollups";
|
||||
import { recomputeUserMoodRollups } from "@/lib/rollups/mood-rollups";
|
||||
import {
|
||||
collapseToTypeDayKeys,
|
||||
recomputeBucketsForMeasurement,
|
||||
|
||||
Reference in new issue
Block a user