Migrated user related sechamas to src/schemas/user/
This commit is contained in:
parent
3eddd0ea5b
commit
3de4bff68d
26 changed files with 41 additions and 39 deletions
|
|
@ -18,9 +18,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
|||
const {validationResult, matchedData} = require('express-validator');
|
||||
|
||||
//local imports
|
||||
const banModel = require('../../../schemas/userBanSchema');
|
||||
const banModel = require('../../../schemas/user/userBanSchema');
|
||||
const permissionModel = require('../../../schemas/permissionSchema');
|
||||
const {userModel} = require('../../../schemas/userSchema');
|
||||
const {userModel} = require('../../../schemas/user/userSchema');
|
||||
const {exceptionHandler, errorHandler} = require('../../../utils/loggerUtils');
|
||||
|
||||
module.exports.get = async function(req, res){
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ const {validationResult, matchedData} = require('express-validator');
|
|||
//local imports
|
||||
const {exceptionHandler, errorHandler} = require('../../../utils/loggerUtils');
|
||||
const permissionModel = require('../../../schemas/permissionSchema');
|
||||
const {userModel} = require('../../../schemas/userSchema');
|
||||
const {userModel} = require('../../../schemas/user/userSchema');
|
||||
|
||||
//api change rank functions
|
||||
module.exports.post = async function(req, res){
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
|||
|
||||
//local imports
|
||||
const {exceptionHandler, errorHandler} = require('../../../utils/loggerUtils');
|
||||
const {userModel} = require('../../../schemas/userSchema');
|
||||
const {userModel} = require('../../../schemas/user/userSchema');
|
||||
|
||||
//api list account functions
|
||||
module.exports.get = async function(req, res){
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
|||
const {validationResult, matchedData} = require('express-validator');
|
||||
|
||||
//local imports
|
||||
const {userModel} = require('../../../schemas/userSchema');
|
||||
const passwordResetModel = require("../../../schemas/passwordResetSchema");
|
||||
const {userModel} = require('../../../schemas/user/userSchema');
|
||||
const passwordResetModel = require("../../../schemas/user/passwordResetSchema");
|
||||
const {exceptionHandler, errorHandler} = require('../../../utils/loggerUtils');
|
||||
|
||||
module.exports.post = async function(req, res){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue