summary refs log tree commit diff
path: root/src/api/routes/downloads.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:12:00 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-08-22 22:12:00 +1000
commitafefa5d64bd6cde7d6efa3a9a5a3ec67a6ca29a8 (patch)
tree07779150eba77c27bf75bc0c7890f4a3f976716e /src/api/routes/downloads.ts
parentremoved char joiners as they are actually useful, added page break (diff)
parentMerge remote-tracking branch 'Puyodead1/patch/prettier-config' into staging (diff)
downloadserver-afefa5d64bd6cde7d6efa3a9a5a3ec67a6ca29a8.tar.xz
Merge remote-tracking branch 'upstream/staging' into fix/categoryNames
Diffstat (limited to '')
-rw-r--r--src/api/routes/downloads.ts (renamed from api/src/routes/downloads.ts)4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/src/routes/downloads.ts b/src/api/routes/downloads.ts

index ddfc080c..44530353 100644 --- a/api/src/routes/downloads.ts +++ b/src/api/routes/downloads.ts
@@ -1,5 +1,5 @@ import { Router, Response, Request } from "express"; -import { route } from "@fosscord/api"; +import { route } from ".."; import { Release, Config } from "@fosscord/util"; const router = Router(); @@ -12,7 +12,7 @@ router.get("/:branch", route({}), async (req: Request, res: Response) => { if(!platform || !["linux", "osx", "win"].includes(platform.toString())) return res.status(404) - const release = await Release.findOneOrFail({ name: client.releases.upstreamVersion }); + const release = await Release.findOneOrFail({ where: { name: client.releases.upstreamVersion } }); res.redirect(release[`win_url`]); });