mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-17 01:15:05 +03:00
Akif9748
ae83e014a0
The dublicate key error fixed, ids as string. classes removed. using mongoose's magic
6 lines
No EOL
162 B
JavaScript
6 lines
No EOL
162 B
JavaScript
const { UserModel } = require("../models");
|
|
|
|
module.exports = async (req, res, next) => {
|
|
req.user = await UserModel.get(req.session.userid);
|
|
next();
|
|
}
|