diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-06 18:25:30 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-09 23:28:27 +0200 |
commit | cba3844c6f7a6b26c93d8061da0ca7fe6b291e92 (patch) | |
tree | 515a4000f4d26ab1999644b9dd6a057e03041bcf /api/src/routes/downloads.ts | |
parent | migrate to DataSource (diff) | |
download | server-cba3844c6f7a6b26c93d8061da0ca7fe6b291e92.tar.xz |
Resolve changes undone by rebasing from master
Diffstat (limited to 'api/src/routes/downloads.ts')
-rw-r--r-- | api/src/routes/downloads.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/downloads.ts b/api/src/routes/downloads.ts index 03c73f44..44530353 100644 --- a/api/src/routes/downloads.ts +++ b/api/src/routes/downloads.ts @@ -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`]); }); |