summary refs log tree commit diff
path: root/src/api/routes/users/@me/guilds/#guild_id
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/users/@me/guilds/#guild_id')
-rw-r--r--src/api/routes/users/@me/guilds/#guild_id/settings.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/routes/users/@me/guilds/#guild_id/settings.ts b/src/api/routes/users/@me/guilds/#guild_id/settings.ts
index 7e9f2a08..2ae82423 100644
--- a/src/api/routes/users/@me/guilds/#guild_id/settings.ts
+++ b/src/api/routes/users/@me/guilds/#guild_id/settings.ts
@@ -16,14 +16,14 @@
 	along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
 
-import { Router, Response, Request } from "express";
+import { route } from "@spacebar/api";
 import {
 	Channel,
 	Member,
 	OrmUtils,
 	UserGuildSettingsSchema,
 } from "@spacebar/util";
-import { route } from "@spacebar/api";
+import { Request, Response, Router } from "express";
 
 const router = Router();
 
@@ -38,7 +38,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
 
 router.patch(
 	"/",
-	route({ body: "UserGuildSettingsSchema" }),
+	route({ requestBody: "UserGuildSettingsSchema" }),
 	async (req: Request, res: Response) => {
 		const body = req.body as UserGuildSettingsSchema;