Skip to content
Snippets Groups Projects
Commit 2c77e655 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

remove console logs

parent bdb80417
No related branches found
No related tags found
2 merge requests!29version 0.9,!28API and Schema rework
......@@ -9,8 +9,6 @@ const authorizationUri = oauth2().authorizationCode.authorizeURL({
* Redirects to the authorization URL
*/
const login = () => (req: Request, res: Response) => {
console.log(authorizationUri);
console.log(process.env.AUTH_ID);
res.redirect(authorizationUri);
};
......
......@@ -9,7 +9,9 @@ const logout = () => async (
next: NextFunction
) => {
try {
await req.session!.destroy(() => console.log("user logged out."));
await req.session!.destroy(() => {
// user logged out, do nothing
});
res.redirect("/");
} catch (err) {
next(err);
......
import { Request, Response } from "express";
const example = () => (req: Request, res: Response) => {
console.log(res.data.value);
res.status(200).json({ message: "Example" });
};
......
......@@ -41,7 +41,6 @@ const sendUserCard = (): any => async (
const svg = fs.readFileSync("src/utils/card/template.svg", "utf8");
console.log(res.data.profile);
const result = svg
.replace(/{{profile_picture}}/g, profilePicture)
.replace(/{{background_image}}/g, bgPicture)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment