mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-20 00:05:32 +00:00
Use query for sessions endpoint
This commit is contained in:
@@ -32,7 +32,7 @@ router.get(
|
||||
},
|
||||
}),
|
||||
async (req: Request, res: Response) => {
|
||||
const { extended = false } = req.params;
|
||||
const { extended = false } = req.query;
|
||||
const sessions = (await Session.find({ where: { user_id: req.user_id, is_admin_session: false } })) as Session[];
|
||||
|
||||
res.json({
|
||||
|
||||
Reference in New Issue
Block a user