mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use req.user._id
This commit is contained in:
parent
5be18d916d
commit
332c60773d
@ -10,7 +10,7 @@ export default {
|
||||
select: ["message", "attachments", "type", "data", "timestamp"],
|
||||
}, async (req, res) => {
|
||||
const post = await CreatePost({
|
||||
user_id: req.user.id,
|
||||
user_id: req.user._id.toString(),
|
||||
message: req.selection.message,
|
||||
timestamp: req.selection.timestamp,
|
||||
attachments: req.selection.attachments,
|
||||
|
Loading…
x
Reference in New Issue
Block a user