mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 17:23:18 +00:00
Avoid re-fetching user if not requesting extra fields
This commit is contained in:
1 parent
df8f8a57af
commit
e2de706abf
12 files changed
+21
-24
No files matched your search
@@ -41,7 +41,7 @@ router.post("/", route({}), async (req: Request, res: Response) => {
|
||||
},
|
||||
} as InteractionCreateEvent);
|
||||
|
||||
const user = await User.findOneOrFail({ where: { id: req.user_id } });
|
||||
const user = req.user;
|
||||
|
||||
const interactionData: Partial<InteractionCreateSchema> = {
|
||||
id: interactionId,
|
||||
|
||||
Reference in new issue
Block a user