mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
find by id instead query
This commit is contained in:
parent
7691702c10
commit
cb562d1c65
@ -19,7 +19,7 @@ export default class StreamingController extends Controller {
|
|||||||
// if the user already has a key, it will be regenerated
|
// if the user already has a key, it will be regenerated
|
||||||
|
|
||||||
// get username from user_id
|
// get username from user_id
|
||||||
const userData = await User.findOne({ user_id: user_id })
|
const userData = await User.findById(user_id)
|
||||||
|
|
||||||
const streamingKey = new StreamingKey({
|
const streamingKey = new StreamingKey({
|
||||||
user_id,
|
user_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user