style(prettier): Fix formatting
Docker Image CI / test (push) Successful in 1m2s
Tests / unit (push) Successful in 1m2s
Tests / integration (push) Successful in 1m39s
Docker Image CI / deploy (push) Successful in 1m24s

This commit is contained in:
2026-09-27 21:00:09 +02:00
parent 61cc516f47
commit 91d9bc4cbb
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -1,6 +1,6 @@
import type { HuntMapData, MapPosition } from '#shared/types/map';
import { useValidatedParams, z, zh } from 'h3-zod'; import { useValidatedParams, z, zh } from 'h3-zod';
import prisma from '~~/lib/prisma'; import prisma from '~~/lib/prisma';
import type { HuntMapData, MapPosition } from '#shared/types/map';
/** /**
* Aggregate live-map payload for hunt organizers. * Aggregate live-map payload for hunt organizers.
@@ -68,7 +68,13 @@ export default defineEventHandler(async (event): Promise<HuntMapData> => {
const points = await prisma.trackPoint.findMany({ const points = await prisma.trackPoint.findMany({
where: { huntId }, where: { huntId },
orderBy: { recordedAt: 'desc' }, orderBy: { recordedAt: 'desc' },
select: { userId: true, lat: true, lon: true, accuracy: true, recordedAt: true } select: {
userId: true,
lat: true,
lon: true,
accuracy: true,
recordedAt: true
}
}); });
const seen = new Set<number>(); const seen = new Set<number>();
@@ -1,6 +1,6 @@
import type { UserTrail } from '#shared/types/map';
import { useValidatedParams, z, zh } from 'h3-zod'; import { useValidatedParams, z, zh } from 'h3-zod';
import prisma from '~~/lib/prisma'; import prisma from '~~/lib/prisma';
import type { UserTrail } from '#shared/types/map';
/** /**
* Full TrackPoint trail for a single user in a hunt, fetched lazily when an * Full TrackPoint trail for a single user in a hunt, fetched lazily when an