map speed improvements
This commit is contained in:
@@ -15,7 +15,8 @@ export async function GET(event: RequestEvent) {
|
||||
if (!t.expand) {
|
||||
t.expand = {} as any
|
||||
}
|
||||
t.expand!.author = await pb.collection("users_anonymous").getOne(t.author);
|
||||
|
||||
// t.expand!.author = await pb.collection("users_anonymous").getOne(t.author);
|
||||
t.expand?.waypoints?.sort((a, b) => (a.distance_from_start ?? 0) - (b.distance_from_start ?? 0))
|
||||
}
|
||||
return json(r)
|
||||
|
||||
Reference in New Issue
Block a user