Skip to content

Commit

Permalink
fix(notification): check on online status
Browse files Browse the repository at this point in the history
  • Loading branch information
manuandru committed Sep 17, 2023
1 parent 30db3e9 commit c11c7b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const GetUserStatusApiRoute = new Route<
path: '/:username/status',
schema: GetUserStatusApi.Request.Schema,
handler: async (req, res) => {
const status = await userStatusController.getStatus(req.user.username)
const status = await userStatusController.getStatus(req.params.username)
const response = new GetUserStatusApi.Responses.Success({
online: status.status === 'online',
lastActive: status.lastActive ?? new Date(0),
Expand Down

0 comments on commit c11c7b2

Please sign in to comment.