mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix user_id selection
This commit is contained in:
parent
5857a505c0
commit
2d962b8797
@ -30,7 +30,7 @@ export default async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
let user = await User.findById(
|
let user = await User.findById(
|
||||||
verificationTokenDecoded.user_id || user_id,
|
user_id || verificationTokenDecoded?.user_id,
|
||||||
).select("+password")
|
).select("+password")
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user