mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 12:04:16 +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"],
|
select: ["message", "attachments", "type", "data", "timestamp"],
|
||||||
}, async (req, res) => {
|
}, async (req, res) => {
|
||||||
const post = await CreatePost({
|
const post = await CreatePost({
|
||||||
user_id: req.user.id,
|
user_id: req.user._id.toString(),
|
||||||
message: req.selection.message,
|
message: req.selection.message,
|
||||||
timestamp: req.selection.timestamp,
|
timestamp: req.selection.timestamp,
|
||||||
attachments: req.selection.attachments,
|
attachments: req.selection.attachments,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user