Update index.ts

This commit is contained in:
untidyArtistry 2023-07-01 12:25:44 -05:00 committed by GitHub
parent b3d1a530b6
commit be730c10e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@ export default async function handler(
name: query.user
});
if (checkUser == null) return res.status(404).end();
// Make sure to reverse methods so that way other owners can edit this troll
if (!compareCredentials(checkUser, cookies)) {
const thisUser = await getSingleUser({
name: cookies.TROLLCALL_NAME