mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 07:40:45 -08:00
fix: encode id for view route
This commit is contained in:
@@ -25,7 +25,7 @@ import { createRoutes } from './routes';
|
|||||||
|
|
||||||
export const getFile = async (id: string) =>
|
export const getFile = async (id: string) =>
|
||||||
prisma.file.findFirst({
|
prisma.file.findFirst({
|
||||||
where: { name: id as string },
|
where: { name: decodeURIComponent(id) },
|
||||||
select: {
|
select: {
|
||||||
...fileSelect,
|
...fileSelect,
|
||||||
password: true,
|
password: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user