Fix typescript errors and update depencies
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Fabian Stamm
2020-12-19 16:15:34 +01:00
parent 05bef4fd49
commit 7c0d5949ab
14 changed files with 1517 additions and 1445 deletions

View File

@ -9,9 +9,9 @@ import * as crypto from "crypto";
import Logging from "@hibas123/nodelogging";
const Login = promiseMiddleware(async (req: Request, res: Response) => {
let type = req.query.type;
let type = req.query.type as string;
if (type === "username") {
let { username, uid } = req.query;
let { username, uid } = req.query as { [key: string]: string };
let user = await User.findOne(
username ? { username: username.toLowerCase() } : { uid: uid }
);