明树Git Lab

Commit 90353d35 authored by zfp1's avatar zfp1

Merge branch 'dev' of gitlab.bridata.com:zengfanpei/jt_backend into dev

parents 3173f836 0a0fdf84
Pipeline #103953 passed with stage
in 3 seconds
...@@ -2,6 +2,7 @@ const crypto = require('crypto'); ...@@ -2,6 +2,7 @@ const crypto = require('crypto');
const _ = require('lodash'); const _ = require('lodash');
const CryptoJS = require('crypto-js'); const CryptoJS = require('crypto-js');
const { Op } = require('sequelize'); const { Op } = require('sequelize');
const userModule = require('../module/userModule');
const errorMessage = require('../utils/errorMessage'); const errorMessage = require('../utils/errorMessage');
...@@ -124,6 +125,7 @@ async function createUser(req, res, next) { ...@@ -124,6 +125,7 @@ async function createUser(req, res, next) {
} }
} }
async function getUserInfo(req, res, next) { async function getUserInfo(req, res, next) {
try { try {
let query = {}; let query = {};
...@@ -252,7 +254,7 @@ async function listUser(req, res, next) { ...@@ -252,7 +254,7 @@ async function listUser(req, res, next) {
async function deleteUser(req, res, next) { async function deleteUser(req, res, next) {
try { try {
const body = req.body; const body = req.body;
const search = {}; let search = {};
if (body.id) { if (body.id) {
search = { id: body.id }; search = { id: body.id };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment