summary refs log tree commit diff
path: root/api/src/routes/downloads.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-31 01:21:40 +1100
committerGitHub <noreply@github.com>2022-03-30 17:21:40 +0300
commit40f08ed76c35daea8a1e743d2076e27ea4d7e40f (patch)
tree3c4c6d6d66a11fe25382edb9682f0ecdc1f42624 /api/src/routes/downloads.ts
parentMerge pull request #705 from fosscord/dependabot/npm_and_yarn/bundle/minimist... (diff)
downloadserver-40f08ed76c35daea8a1e743d2076e27ea4d7e40f.tar.xz
Fix typo in table 'client_relase' -> 'client_release' ( and other of the same typo ) (#703)
* Fixed typo in table name 'client_relase' -> 'client_release'. Fixed more typos of the same typo.

* Fixed migration ( but dirty lol )
Diffstat (limited to 'api/src/routes/downloads.ts')
-rw-r--r--api/src/routes/downloads.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/routes/downloads.ts b/api/src/routes/downloads.ts
index ad78b62f..ddfc080c 100644
--- a/api/src/routes/downloads.ts
+++ b/api/src/routes/downloads.ts
@@ -1,6 +1,6 @@
 import { Router, Response, Request } from "express";
 import { route } from "@fosscord/api";
-import { Relase, Config } from "@fosscord/util";
+import { Release, Config } from "@fosscord/util";
 
 const router = Router();
 
@@ -12,9 +12,9 @@ router.get("/:branch", route({}), async (req: Request, res: Response) => {
 
 	if(!platform || !["linux", "osx", "win"].includes(platform.toString())) return res.status(404)
 
-	const relase = await Relase.findOneOrFail({ name: client.relases.upstreamVersion });
+	const release = await Release.findOneOrFail({ name: client.releases.upstreamVersion });
 
-	res.redirect(relase[`win_url`]);
+	res.redirect(release[`win_url`]);
 });
 
 export default router;