diff --git a/src/components/admin/user-management.tsx b/src/components/admin/user-management.tsx index 5956c5a..59ae23b 100644 --- a/src/components/admin/user-management.tsx +++ b/src/components/admin/user-management.tsx @@ -64,7 +64,6 @@ export default function Punishments() { }; const handleSubmit = async () => { - // todo: delete punishments const response = await fetch(`/api/admin/punish?id=${userId}`, { method: "POST", body: JSON.stringify({ diff --git a/src/lib/images.tsx b/src/lib/images.tsx index 93775da..7ee2b25 100644 --- a/src/lib/images.tsx +++ b/src/lib/images.tsx @@ -200,8 +200,8 @@ export async function generateMetadataImage(mii: Mii, author: string): Promise<{ try { // I tried using .webp here but the quality looked awful // but it actually might be well-liked due to the hatred of .webp - // const fileLocation = path.join(miiUploadsDirectory, "metadata.png"); - // await fs.writeFile(fileLocation, buffer); + const fileLocation = path.join(miiUploadsDirectory, "metadata.png"); + await fs.writeFile(fileLocation, buffer); } catch (error) { console.error("Error storing 'metadata' image type", error); return { error: `Failed to store metadata image for ${mii.id}`, status: 500 };