summary refs log tree commit diff
diff options
context:
space:
mode:
authorRealMANI <96433859+ImAaronFR@users.noreply.github.com>2022-03-08 01:27:32 +0330
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-03-08 18:12:34 +0300
commit4a1e25dda6b1a39d67a3337041a60f6dd4bd781c (patch)
tree1c08e48172af149874b362879dbdf02d92adc7cc
parentChanging Member.premium_since back from Date to number fixes an error in the ... (diff)
downloadserver-4a1e25dda6b1a39d67a3337041a60f6dd4bd781c.tar.xz
Temporary notes fix
Temporary fix for getting stuck on loading user note.
//TODO
-rw-r--r--api/src/routes/users/@me/notes.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/routes/users/@me/notes.ts b/api/src/routes/users/@me/notes.ts
index 2ef27bc0..96067bf5 100644
--- a/api/src/routes/users/@me/notes.ts
+++ b/api/src/routes/users/@me/notes.ts
@@ -6,9 +6,9 @@ const router: Router = Router();
 router.put("/:id", route({}), async (req: Request, res: Response) => {
 	//TODO
 	res.json({
-		message: "400: Bad Request",
-		code: 0
-	}).status(400);
+		message: "Unknown User",
+		code: 10013
+	}).status(404);
 });
 
 export default router;