Commit d1d865b3 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Fix SQL indentation.

parent 33c5b4aa
......@@ -41,20 +41,20 @@ export const get: RequestHandler = async ({ params: requestParams, url }) => {
const study = segments.startsWith("doi/")
? await db.oneOrNone(
dedent`
SELECT *
FROM studies
WHERE doi = $<doi>
`,
SELECT *
FROM studies
WHERE doi = $<doi>
`,
{
doi: segments.substring(4),
},
)
: await db.oneOrNone(
dedent`
SELECT *
FROM studies
WHERE path = $<path>
`,
SELECT *
FROM studies
WHERE path = $<path>
`,
{
path: segments,
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment