fix invalid status code in /pfp

This commit is contained in:
zkldi
2021-06-28 16:43:16 +01:00
parent 8aeb7a77df
commit 5b0a2d6ebd
2 changed files with 3 additions and 1 deletions
@@ -7,6 +7,8 @@ const router: Router = Router({ mergeParams: true });
/**
* Performs a generic "search" across Tachi.
*
* @param search - The criteria to search on.
*
* @name GET /api/v1/search
*/
router.get("/", async (req, res) => {
@@ -103,7 +103,7 @@ router.delete(
const user = req[SYMBOL_TachiData]!.requestedUser!;
if (!user.customPfp) {
return res.status(409).json({
return res.status(404).json({
success: false,
description: `You do not have a custom profile picture to delete.`,
});