mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 00:08:22 +03:00
fix invalid status code in /pfp
This commit is contained in:
@@ -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.`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user