style(prettier): Fix formatting
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user