summary refs log tree commit diff
diff options
context:
space:
mode:
authorFeatyre <twooter.0g179@simplelogin.co>2022-01-25 00:30:16 +0800
committerFeatyre <twooter.0g179@simplelogin.co>2022-01-25 00:30:16 +0800
commit5c525c1eef8de8c94a47316b23c23bd23ce54922 (patch)
treefbb02ae943bf0af235805ef0ae281d1f64cf2ff0
parentMerge branch 'fosscord:master' into master (diff)
downloadserver-5c525c1eef8de8c94a47316b23c23bd23ce54922.tar.xz
change line
-rw-r--r--api/src/routes/guilds/#guild_id/members/#member_id/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/guilds/#guild_id/members/#member_id/index.ts b/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
index 18a6ed4b..24c74af7 100644
--- a/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
+++ b/api/src/routes/guilds/#guild_id/members/#member_id/index.ts
@@ -61,8 +61,8 @@ router.put("/", route({}), async (req: Request, res: Response) => {
 	var stickers = await Sticker.find({
 		where: { guild_id: guild_id }	});
 	
-	res.send({...guild, emojis: emoji, roles: roles, stickers: stickers});
 	await Member.addToGuild(member_id, guild_id);
+	res.send({...guild, emojis: emoji, roles: roles, stickers: stickers});
 });
 
 router.delete("/", route({ permission: "KICK_MEMBERS" }), async (req: Request, res: Response) => {