Skip to content

Commit e05093a

Browse files
authored
fix: correct city id reference in download filename and update asset link id (#357) (#360)
1 parent 817a3a8 commit e05093a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/events/[id]/assets/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const GET: APIRoute = async ({ params, site }) => {
3737
return new Response(zip.toBuffer(), {
3838
headers: {
3939
"Content-Type": "application/zip",
40-
"Content-Disposition": `attachment; filename="${event.data.date.getFullYear()}-${event.data._computed.country?.id}-${event.data.city}-assets-${dayjs().format("YYYYMMDDHHmmss")}.zip"`,
40+
"Content-Disposition": `attachment; filename="${event.data.date.getFullYear()}-${event.data._computed.country?.id}-${event.data.city.id}-assets-${dayjs().format("YYYYMMDDHHmmss")}.zip"`,
4141
},
4242
});
4343
};

src/pages/events/[id]/assets/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const imagesSrc = getEventAssetsSources(event);
8989
allEvents.map((e) => (
9090
<a
9191
href={lunalink(ROUTES.events[":id"].assets.__path, {
92-
id: event.id,
92+
id: e.id,
9393
})}
9494
class={cn("p-1", e.id === event.id && "opacity-60")}
9595
>

0 commit comments

Comments
 (0)