From 5134b76e1c8c4e560bca3f12bedebd381feb12b7 Mon Sep 17 00:00:00 2001 From: JilianaTiu Date: Sun, 23 Oct 2022 22:28:15 -0700 Subject: [PATCH] Contact Us link to #contact-us --- src/public/Config.ts | 2 +- src/util/Database.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/public/Config.ts b/src/public/Config.ts index 58bbcf3..f23ef96 100644 --- a/src/public/Config.ts +++ b/src/public/Config.ts @@ -18,7 +18,7 @@ export const ACTIVE_PAGES = [ }, { name: "Contact Us", - url: "/contact", + url: "/#contact-us", }, ]; diff --git a/src/util/Database.ts b/src/util/Database.ts index a8ef110..b5710dd 100644 --- a/src/util/Database.ts +++ b/src/util/Database.ts @@ -98,10 +98,10 @@ export default class UserDatabase { * @param uuid the UUID of the user * @returns the user's email */ - public async getEmail(uuid: string): Promise { - const user = await User.findOne({ uuid: uuid }).lean().exec(); - return user.email.text; - } + // public async getEmail(uuid: string): Promise { + // const user = await User.findOne({ uuid: uuid }).lean().exec(); + // return user.email.text; + // } /** * Updates a user's password @@ -120,10 +120,10 @@ export default class UserDatabase { * @param uuid the UUID of the user * @returns the user's password */ - public async getPasswordHash(uuid: string): Promise { - const user = await User.findOne({ uuid: uuid }).lean().exec(); - return user.password.hash; - } + // public async getPasswordHash(uuid: string): Promise { + // const user = await User.findOne({ uuid: uuid }).lean().exec(); + // return user.password.hash; + // } /** * Updates a member's position